From f251e6cfa10b3d8678348df254c50fe183f169a4 Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Thu, 2 Nov 2000 23:28:12 +0000 Subject: [PATCH] The Number of Fixed Disks at memory location 0x475 is only 1 byte, not a 2 byte word. This fixes machines that probe 30-odd hard drives during boot in the loader. Submitted by: Helpful folks at Tyan via ps --- sys/boot/i386/libi386/biosdisk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/boot/i386/libi386/biosdisk.c b/sys/boot/i386/libi386/biosdisk.c index 7720d1bb18d..0ad95e1d25b 100644 --- a/sys/boot/i386/libi386/biosdisk.c +++ b/sys/boot/i386/libi386/biosdisk.c @@ -172,7 +172,7 @@ bd_init(void) for (unit = base; (nbdinfo < MAXBDDEV); unit++) { /* check the BIOS equipment list for number of fixed disks */ if((base == 0x80) && - (nfd >= *(unsigned short *)PTOV(BIOS_NUMDRIVES))) + (nfd >= *(unsigned char *)PTOV(BIOS_NUMDRIVES))) break; bdinfo[nbdinfo].bd_unit = unit;