mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue