From 06415b58cdba12cd6a1a5b06f567d11d584364cc Mon Sep 17 00:00:00 2001 From: dzwdz Date: Mon, 8 Aug 2022 19:37:10 +0200 Subject: driver/ata: separate out from the fsroot driver --- src/kernel/arch/amd64/ata.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/kernel/arch/amd64/ata.c') 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); -- cgit v1.2.3