From: John Hodge Date: Sat, 21 Dec 2013 09:36:10 +0000 (+0800) Subject: Modules/ATA - Error (instead of EOK) on IO failure X-Git-Tag: rel0.15~50 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=6716c65d6dbcd139ac1ce8231b61e47ce687b43f;p=tpg%2Facess2.git Modules/ATA - Error (instead of EOK) on IO failure --- diff --git a/KernelLand/Modules/Storage/ATA/io.c b/KernelLand/Modules/Storage/ATA/io.c index 28ae8996..5c979e48 100644 --- a/KernelLand/Modules/Storage/ATA/io.c +++ b/KernelLand/Modules/Storage/ATA/io.c @@ -153,8 +153,8 @@ int ATA_SetupIO(void) outb(base+0x03, 0xFF); if(inb(base+0x02) != 0x66 || inb(base+0x03) != 0xFF) { Log_Error("ATA", "Unable to write to 0x%x/0x%x", base+2, base+3); - LEAVE('i', 0); - return 0; + LEAVE('i', MODULE_ERR_MISC); + return MODULE_ERR_MISC; } }