Compare commits

..

21 Commits

Author SHA1 Message Date
1d973664ed
kernel/ATA: Pass extra information to DeviceRegistry
All checks were successful
continuous-integration/drone/pr Build is passing
This is needed since merging e7d482e from main.
2023-05-20 21:50:45 +02:00
3423599ec7
kernel+init: Create a device node in /dev to access the CDROM from userspace!
Still using PIO, though.
2023-05-20 21:50:45 +02:00
444ac01d01
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-20 21:50:45 +02:00
7a4b36d795
kernel/x86_64: Implement writing to PCI fields 2023-05-20 21:50:45 +02:00
913ce18121
kernel/PCI: Add bit enum for the Command field 2023-05-20 21:50:45 +02:00
6ba8af6a54
kernel: Actually register interrupt handlers properly 2023-05-20 21:50:44 +02:00
599193c1bf
kernel/ATA: Calculate block sizes for ATA devices as well 2023-05-20 21:50:44 +02:00
8449a7e545
kernel/ATA: Send a READ CAPACITY packet to an ATA drive on initialization 2023-05-20 21:50:44 +02:00
8fb9909de9
kernel/ATA: Read the PCI Busmaster registers and start preparing for DMA 2023-05-20 21:50:44 +02:00
2c4d20b30b
kernel/ATA: Read the Busmaster base port and verify it 2023-05-20 21:50:44 +02:00
61f1f16be7
kernel: Handle device BARs properly 2023-05-20 21:50:44 +02:00
d872f78b67
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-20 21:50:43 +02:00
e8ceab1896
kernel/ATA: Implement enough to send an IDENTIFY command and read the model number :) 2023-05-20 21:50:43 +02:00
f7b7c5574e
kernel/ATA: Handle drive IRQs in compatibility mode 2023-05-20 21:50:43 +02:00
e57e79cb3e
kernel/CPU: Allow passing arbitrary data to interrupt handlers 2023-05-20 21:50:42 +02:00
8f90d5a8b7
kernel/ATA: Start reading/writing registers and detecting drives 2023-05-20 21:50:42 +02:00
2f828f83ee
kernel: Warn if no ATA controller is found 2023-05-20 21:50:42 +02:00
c4428f15bc
kernel: Add a KMutex class and use that for ATA::Controller locking 2023-05-20 21:50:42 +02:00
94569f2171
kernel/x86_64: Add basic ATA controller and channel identification 2023-05-20 21:50:41 +02:00
3586350754
kernel/PCI: Add more PCI field types 2023-05-20 21:50:41 +02:00
f4f0ecdb42
kernel/x86_64: Add a way to register IRQ handlers from other kernel subsystems 2023-05-20 21:50:41 +02:00

View File

@ -1,5 +1,5 @@
# Luna
A very basic POSIX-based operating system for personal computers, written in C++. [![Build Status](https://drone.cloudapio.eu/api/badges/apio/Luna/status.svg)](https://drone.cloudapio.eu/apio/Luna)
A very basic POSIX operating system for desktop computers, written mostly in C++ and C. [![Build Status](https://drone.cloudapio.eu/api/badges/apio/Luna/status.svg)](https://drone.cloudapio.eu/apio/Luna)
## Another UNIX clone?
[Yes, another UNIX clone](https://wiki.osdev.org/User:Sortie/Yes_Another_Unix_Clone).