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
This commit is contained in:
John Baldwin 2000-11-02 23:28:12 +00:00
parent a450541bfc
commit f251e6cfa1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=68264

View File

@ -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;