summaryrefslogtreecommitdiff
path: root/src/kernel/arch/amd64/ata.c
diff options
context:
space:
mode:
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);