From e1837929f0250bf937d4f5bb316cd1befb5f596d Mon Sep 17 00:00:00 2001 From: OBattler Date: Mon, 19 Jul 2021 08:49:14 +0200 Subject: [PATCH] IDE no longer pulls down status bit 7 when nothing is attached - fixes delays on most AMI BIOS'es. --- src/disk/hdc_ide.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/disk/hdc_ide.c b/src/disk/hdc_ide.c index 6953bda83..f7740fab8 100644 --- a/src/disk/hdc_ide.c +++ b/src/disk/hdc_ide.c @@ -1882,7 +1882,11 @@ static uint8_t ide_status(ide_t *ide, ide_t *ide_other, int ch) { if ((ide->type == IDE_NONE) && ((ide_other->type == IDE_NONE) || !(ch & 1))) +#ifdef STATUS_BIT_7_PULLDOWN return 0x7F; /* Bit 7 pulled down, all other bits pulled up, per the spec. */ +#else + return 0xFF; +#endif 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. */ else if (ide->type == IDE_ATAPI)