From 250b756af785ed406e23c71cf41b1a0d35b5a686 Mon Sep 17 00:00:00 2001 From: OBattler Date: Fri, 18 Aug 2023 23:43:08 +0200 Subject: [PATCH] Changed the IDE status return on empty slave with non-empty master, fixes Award BIOS excess waits. --- src/disk/hdc_ide.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/disk/hdc_ide.c b/src/disk/hdc_ide.c index 01d1d28bf..52c1dc69e 100644 --- a/src/disk/hdc_ide.c +++ b/src/disk/hdc_ide.c @@ -1939,7 +1939,7 @@ ide_status(ide_t *ide, ide_t *ide_other, int ch) if ((ide->type == IDE_NONE) && ((ide_other->type == IDE_NONE) || !(ch & 1))) return 0x7f; /* Bit 7 pulled down, all other bits pulled up, per the spec. */ else if ((ide->type == IDE_NONE) && (ch & 1)) - return 0x00; /* On real hardware, a slave with a present master always returns a status of 0x00. */ + return 0x7f /*0x00*/; /* On real hardware, a slave with a present master always returns a status of 0x00. */ else if (ide->type == IDE_ATAPI) return (ide->sc->status & ~DSC_STAT) | (ide->service ? SERVICE_STAT : 0); else