Commit Graph

1758 Commits

Author SHA1 Message Date
921b5ce360
kernel/ATA: Pass extra information to DeviceRegistry
This is needed since merging e7d482e from main.
2023-05-26 20:30:54 +02:00
4dc8a13058
kernel+init: Create a device node in /dev to access the CDROM from userspace!
Still using PIO, though.
2023-05-26 20:30:54 +02:00
b41fe9d45e
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:30:54 +02:00
6e22d4649f
kernel/x86_64: Implement writing to PCI fields 2023-05-26 20:30:54 +02:00
e864965400
kernel/PCI: Add bit enum for the Command field 2023-05-26 20:30:53 +02:00
74d5e7759f
kernel: Actually register interrupt handlers properly 2023-05-26 20:30:53 +02:00
4d949d48c4
kernel/ATA: Calculate block sizes for ATA devices as well 2023-05-26 20:30:53 +02:00
aaf3934d9a
kernel/ATA: Send a READ CAPACITY packet to an ATA drive on initialization 2023-05-26 20:30:53 +02:00
6854daf673
kernel/ATA: Read the PCI Busmaster registers and start preparing for DMA 2023-05-26 20:30:53 +02:00
3742ae23a1
kernel/ATA: Read the Busmaster base port and verify it 2023-05-26 20:30:53 +02:00
e0c84a0174
kernel: Handle device BARs properly 2023-05-26 20:30:53 +02:00
fc6aa2bb36
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:30:53 +02:00
b578680bf5
kernel/ATA: Implement enough to send an IDENTIFY command and read the model number :) 2023-05-26 20:30:53 +02:00
20a1d16606
kernel/ATA: Handle drive IRQs in compatibility mode 2023-05-26 20:30:53 +02:00
a558c3b2d0
kernel/CPU: Allow passing arbitrary data to interrupt handlers 2023-05-26 20:30:53 +02:00
e22c9a9659
kernel/ATA: Start reading/writing registers and detecting drives 2023-05-26 20:30:52 +02:00
6f02dde85e
kernel: Warn if no ATA controller is found 2023-05-26 20:30:52 +02:00
4aa4cd47e2
kernel: Add a KMutex class and use that for ATA::Controller locking 2023-05-26 20:30:52 +02:00
2d28f03304
kernel/x86_64: Add basic ATA controller and channel identification 2023-05-26 20:30:52 +02:00
c83bf29ef4
kernel/PCI: Add more PCI field types 2023-05-26 20:30:52 +02:00
3ca3a138fc
kernel/x86_64: Add a way to register IRQ handlers from other kernel subsystems 2023-05-26 20:30:52 +02:00
7cdb967730
kernel: compilation fix
All checks were successful
continuous-integration/drone/push Build is passing
2023-05-26 20:30:39 +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