mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-29 17:32:43 +00:00
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:
parent
a450541bfc
commit
f251e6cfa1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=68264
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user