Commit Graph

1757 Commits

Author SHA1 Message Date
176864f623
kernel/ATA: Pass extra information to DeviceRegistry
Some checks failed
continuous-integration/drone/pr Build is failing
This is needed since merging e7d482e from main.
2023-05-26 20:28:21 +02:00
1e586ee982
kernel+init: Create a device node in /dev to access the CDROM from userspace!
Still using PIO, though.
2023-05-26 20:28:21 +02:00
35c96024d4
kernel/ATA: Read the CDROM's first sector using ATAPI PIO!!
Sadly, for some reason, DMA is not working right now.
This is a problem, as PIO is inconvenient. But hey, it works for now!
2023-05-26 20:28:21 +02:00
9653497051
kernel/x86_64: Implement writing to PCI fields 2023-05-26 20:28:21 +02:00
39a713333d
kernel/PCI: Add bit enum for the Command field 2023-05-26 20:28:21 +02:00
52cbcb627f
kernel: Actually register interrupt handlers properly 2023-05-26 20:28:21 +02:00
d55edf77cd
kernel/ATA: Calculate block sizes for ATA devices as well 2023-05-26 20:28:20 +02:00
e60b8cfdf0
kernel/ATA: Send a READ CAPACITY packet to an ATA drive on initialization 2023-05-26 20:28:20 +02:00
0483f38038
kernel/ATA: Read the PCI Busmaster registers and start preparing for DMA 2023-05-26 20:28:20 +02:00
1722b995c9
kernel/ATA: Read the Busmaster base port and verify it 2023-05-26 20:28:20 +02:00
5afe1ec3a6
kernel: Handle device BARs properly 2023-05-26 20:28:20 +02:00
2c239f7d19
kernel/ATA: Read ATA strings properly instead of backwards
Now we can see the model string. What does it say...

"QEMU DVD-ROM". Let's go!
2023-05-26 20:28:20 +02:00
6fb25e2499
kernel/ATA: Implement enough to send an IDENTIFY command and read the model number :) 2023-05-26 20:28:20 +02:00
2ab3860d04
kernel/ATA: Handle drive IRQs in compatibility mode 2023-05-26 20:28:20 +02:00
a35c8d74fb
kernel/CPU: Allow passing arbitrary data to interrupt handlers 2023-05-26 20:28:20 +02:00
9422b8c878
kernel/ATA: Start reading/writing registers and detecting drives 2023-05-26 20:28:20 +02:00
1c4a26a381
kernel: Warn if no ATA controller is found 2023-05-26 20:28:19 +02:00
01489a12d9
kernel: Add a KMutex class and use that for ATA::Controller locking 2023-05-26 20:28:19 +02:00
5eaacd7b29
kernel/x86_64: Add basic ATA controller and channel identification 2023-05-26 20:28:19 +02:00
249453ac3f
kernel/PCI: Add more PCI field types 2023-05-26 20:28:19 +02:00
260c86e22c
kernel/x86_64: Add a way to register IRQ handlers from other kernel subsystems 2023-05-26 20:28:19 +02:00
62e14e7580
kernel+libos+apps: Support block devices and disallow seeking character devices or pipes
Some checks failed
continuous-integration/drone/push Build is failing
2023-05-26 20:27:47 +02:00
38fae0c97b
ls: Show file modes visually
All checks were successful
continuous-integration/drone/push Build is passing
2023-05-26 18:22:50 +02:00
4dcee8f828
sh: Print "exit" on EOF only when the shell is in interactive mode
All checks were successful
continuous-integration/drone/push Build is passing
2023-05-26 17:29:41 +02:00
84c1871d30
libc: Check if a shell is available if system()'s command argument is NULL 2023-05-26 17:27:37 +02:00
3a51807fa6
kernel+stat: Handle pipes correctly in stat()
All checks were successful
continuous-integration/drone/push Build is passing
2023-05-23 20:54:25 +02:00
9cdfdbc6f9
kernel: Handle unnamed pipes in stat()
Some checks failed
continuous-integration/drone/push Build is failing
2023-05-23 20:49:26 +02:00
1094042a7d
kernel: Implement st_dev and st_rdev
Some checks failed
continuous-integration/drone/push Build is failing
2023-05-23 20:45:24 +02:00
1a6ad11462
kernel+libc+libos+ls: Add readlink()
All checks were successful
continuous-integration/drone/push Build is passing
2023-05-23 15:42:38 +02:00
b61307e5cb
ls: Add -1 and --directory
All checks were successful
continuous-integration/drone/push Build is passing
2023-05-23 14:53:38 +02:00
04d074538f
ls: Don't do caching now that password/group file reading is more reasonable
All checks were successful
continuous-integration/drone/push Build is passing
2023-05-20 22:10:01 +02:00
2c798b8bf0
Update README to match repository description
All checks were successful
continuous-integration/drone/push Build is passing
2023-05-20 22:00:52 +02:00
597aada09e
ls+stat: Handle symbolic links properly
All checks were successful
continuous-integration/drone/push Build is passing
2023-05-20 21:49:25 +02:00
4ec1af5e51
apps: Add ln 2023-05-20 21:49:25 +02:00
7a8ef52408
libos: Support not following symlinks 2023-05-20 21:49:25 +02:00
cb205c851c
libc: Add symlink(), symlinkat(), and lstat() 2023-05-20 21:49:25 +02:00
67a9d130e2
kernel: Add initial support for symbolic links :D 2023-05-20 21:49:24 +02:00
b75bd4cd14
libluna: Add PathParser::has_next() 2023-05-20 16:39:18 +02:00
9bb5371e8c
libluna+libc: Add strtok_r() 2023-05-20 16:37:07 +02:00
47d505dcbb
libc: Add getline() and getdelim()
All checks were successful
continuous-integration/drone/push Build is passing
2023-05-20 15:36:30 +02:00
5117b410db
apps: Add time
All checks were successful
continuous-integration/drone/push Build is passing
2023-05-20 12:48:25 +02:00
6de90b3c93
libc: Add getrusage() 2023-05-20 12:48:17 +02:00
01111442d3
kernel: Add the getrusage() system call 2023-05-20 12:48:07 +02:00
1fa8aeecce
libos: Allow Process::exec to take a slice of StringViews instead of Strings as arguments 2023-05-20 12:47:10 +02:00
30d1dad149
libluna: Let String::join take a vector of StringViews instead of Strings 2023-05-20 12:46:33 +02:00
1db60b5a82
sh: Print a message on exit
All checks were successful
continuous-integration/drone/push Build is passing
2023-05-20 12:07:56 +02:00
a7c6163e7c
libc: Add gettimeofday() 2023-05-20 12:05:22 +02:00
dc169124cc
libc: Add fchown, fchmod, and some POSIX feature test macros
All checks were successful
continuous-integration/drone/push Build is passing
2023-05-19 19:59:20 +02:00
3db0c4fed2
apps: Add ps
All checks were successful
continuous-integration/drone/push Build is passing
2023-05-18 21:59:38 +02:00
1506331872
kernel+libc: Add the pstat() system call
Luna-specific, but I like it.
2023-05-18 21:48:47 +02:00