summaryrefslogtreecommitdiffstats
path: root/sys/boot/i386
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2000-11-02 23:28:12 +0000
committerjhb <jhb@FreeBSD.org>2000-11-02 23:28:12 +0000
commitda2d7c0fb1fe25bed83d6bc4308154c433ffffa2 (patch)
treec354c0bd1a0627fe5b90123d2e80d6063419af36 /sys/boot/i386
parentef3e62ce27abe459fc1ab2462ee62e694cf33d88 (diff)
downloadFreeBSD-src-da2d7c0fb1fe25bed83d6bc4308154c433ffffa2.zip
FreeBSD-src-da2d7c0fb1fe25bed83d6bc4308154c433ffffa2.tar.gz
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
Diffstat (limited to 'sys/boot/i386')
-rw-r--r--sys/boot/i386/libi386/biosdisk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/boot/i386/libi386/biosdisk.c b/sys/boot/i386/libi386/biosdisk.c
index 7720d1b..0ad95e1 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;
OpenPOWER on IntegriCloud