Commit Graph

926 Commits

Author SHA1 Message Date
fd2a6a272e
ATA: Mark the CDROM as a block device
All checks were successful
continuous-integration/drone/pr Build is passing
2023-05-26 22:54:28 +02:00
ff4fc1cfbc
kernel/ATA: Pass extra information to DeviceRegistry
This is needed since merging e7d482e from main.
2023-05-26 22:54:27 +02:00
6b45530c3c
kernel+init: Create a device node in /dev to access the CDROM from userspace!
Still using PIO, though.
2023-05-26 22:54:27 +02:00
21ae10478d
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 22:54:27 +02:00
077cb3c950
kernel/x86_64: Implement writing to PCI fields 2023-05-26 22:54:27 +02:00
7ba4d5795c
kernel/PCI: Add bit enum for the Command field 2023-05-26 22:54:27 +02:00
31e0458904
kernel: Actually register interrupt handlers properly 2023-05-26 22:54:26 +02:00
f74afa3503
kernel/ATA: Calculate block sizes for ATA devices as well 2023-05-26 22:54:26 +02:00
ef27acc0ea
kernel/ATA: Send a READ CAPACITY packet to an ATA drive on initialization 2023-05-26 22:54:26 +02:00
4148ac8f14
kernel/ATA: Read the PCI Busmaster registers and start preparing for DMA 2023-05-26 22:54:25 +02:00
72deaa2025
kernel/ATA: Read the Busmaster base port and verify it 2023-05-26 22:54:25 +02:00
aa6c5e09b1
kernel: Handle device BARs properly 2023-05-26 22:54:25 +02:00
2e89fd98d7
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 22:54:25 +02:00
1db990e5aa
kernel/ATA: Implement enough to send an IDENTIFY command and read the model number :) 2023-05-26 22:54:24 +02:00
9cf63a370f
kernel/ATA: Handle drive IRQs in compatibility mode 2023-05-26 22:54:24 +02:00
77ed3fd21f
kernel/CPU: Allow passing arbitrary data to interrupt handlers 2023-05-26 22:54:24 +02:00
0291d7b22c
kernel/ATA: Start reading/writing registers and detecting drives 2023-05-26 22:54:24 +02:00
bfefc675fc
kernel: Warn if no ATA controller is found 2023-05-26 22:54:23 +02:00
a3dd9e0f77
kernel: Add a KMutex class and use that for ATA::Controller locking 2023-05-26 22:54:23 +02:00
5c729d6580
kernel/x86_64: Add basic ATA controller and channel identification 2023-05-26 22:54:22 +02:00
3c9a814d07
kernel/PCI: Add more PCI field types 2023-05-26 22:54:22 +02:00
acf21da441
kernel/x86_64: Add a way to register IRQ handlers from other kernel subsystems 2023-05-26 22:54:16 +02:00
b0506bf88f
kernel: Add umask
All checks were successful
continuous-integration/drone/push Build is passing
2023-05-26 22:27:49 +02:00
d89a823924
kernel: Return EACCES when trying to chdir to an unaccessible directory 2023-05-26 20:49:13 +02:00
cba0a23db9
kernel: Make the framebuffer a block device
All checks were successful
continuous-integration/drone/push Build is passing
2023-05-26 20:36:35 +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
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
67a9d130e2
kernel: Add initial support for symbolic links :D 2023-05-20 21:49:24 +02:00
01111442d3
kernel: Add the getrusage() system call 2023-05-20 12:48:07 +02:00
1506331872
kernel+libc: Add the pstat() system call
Luna-specific, but I like it.
2023-05-18 21:48:47 +02:00
84bed3ceb3
kernel+libc: Remove mknod()
All checks were successful
continuous-integration/drone/push Build is passing
Now that we automatically create files in /dev, mknod() is not needed anymore.
2023-05-18 19:42:14 +02:00
d7c563aebd
kernel: Add reference counting for mounts
All checks were successful
continuous-integration/drone/push Build is passing
This will make sure we cannot unmount a file system while there is another one mounted inside it.
2023-05-18 16:22:31 +02:00
3a73d49aa1
kernel: Remove a mount from the mountpoint list after unmounting it 2023-05-18 16:18:09 +02:00
8f6bd29da3
kernel: Make file system reference counting work for current directories
All checks were successful
continuous-integration/drone/push Build is passing
Also, make pipes usable again.
2023-05-17 20:37:01 +02:00
1f4c4928cc
kernel+libc+apps: Add mount and umount syscalls, libc wrappers, and utilities
All checks were successful
continuous-integration/drone/push Build is passing
2023-05-17 20:30:15 +02:00
29174ca228
kernel/VFS: Add a way to unmount file systems 2023-05-17 19:52:26 +02:00
e7d482e78a
kernel+init: Add a VFS mount system and auto-populate the devfs 2023-05-17 19:40:37 +02:00
64d0f30bd9
kernel: Disallow write-related flags when opening a directory, not only when the directory flag is set
All checks were successful
continuous-integration/drone/push Build is passing
Also return EISDIR instead of EINVAL as that is what Dr. POSIX mandates.
2023-05-11 21:29:49 +02:00
411c6c40cd
kernel: Add the fchmodat() and fchownat() system calls
All checks were successful
continuous-integration/drone/push Build is passing
2023-05-11 19:49:03 +02:00
efc6d03f23
kernel+libc: Add support for unnamed pipes
All checks were successful
continuous-integration/drone/push Build is passing
2023-05-10 22:48:31 +02:00
1a2fce5316
kernel+libc: Add the O_TMPFILE open flag and the tmpfile() function
All checks were successful
continuous-integration/drone/push Build is passing
2023-05-09 22:04:34 +02:00
4753e80583
kernel: Make DeviceRegistry store the created devices instead of creating them when requested
All checks were successful
continuous-integration/drone/push Build is passing
2023-05-09 18:31:27 +02:00
916a73ca95
kernel: Rework the timer subsystem to count in microseconds
All checks were successful
continuous-integration/drone/push Build is passing
2023-05-07 21:51:36 +02:00
9bab4c62a1
kernel: Compilation fixes
All checks were successful
continuous-integration/drone/push Build is passing
2023-05-07 21:42:03 +02:00
72dadc6706
kernel: Define a constant to check for default memory access
Some checks failed
continuous-integration/drone/push Build is failing
2023-05-07 21:38:38 +02:00
b25e212880
kernel: Make a generic function for checking memory flags
Some checks failed
continuous-integration/drone/push Build is failing
2023-05-07 21:37:01 +02:00