summaryrefslogtreecommitdiff
path: root/src/kernel/arch/amd64/ata.c
diff options
context:
space:
mode:
authordzwdz2022-08-08 19:37:10 +0200
committerdzwdz2022-08-08 19:37:10 +0200
commit06415b58cdba12cd6a1a5b06f567d11d584364cc (patch)
tree13e6864247f81f44056afb053f0fef11af576317 /src/kernel/arch/amd64/ata.c
parentf2703089da21898e9c3127615e98c1717c7ceeb5 (diff)
driver/ata: separate out from the fsroot driver
Diffstat (limited to 'src/kernel/arch/amd64/ata.c')
-rw-r--r--src/kernel/arch/amd64/ata.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/kernel/arch/amd64/ata.c b/src/kernel/arch/amd64/ata.c
index 371730e..5c5fc57 100644
--- a/src/kernel/arch/amd64/ata.c
+++ b/src/kernel/arch/amd64/ata.c
@@ -125,7 +125,8 @@ bool ata_available(int drive) {
}
int ata_read(int drive, uint32_t lba, void *buf) {
- assert(ata_drives[drive].type == DEV_PATA);
+ if (ata_drives[drive].type != DEV_PATA)
+ panic_unimplemented();
int iobase = ata_iobase(drive);
ata_driveselect(drive, lba);