Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[undi] Scan for UNDI ROMs on 512-byte boundaries rather than 2kB boun…
…daries

Apparently some BIOSes will place option ROMs on 512-byte boundaries.
While this is against specification, it doesn't actually hurt
anything, so we may as well increase our scan granularity to 512
bytes.

Contributed by Luca <lucarx76@gmail.com>
  • Loading branch information
Michael Brown committed Sep 12, 2008
1 parent 8223084 commit 6df82b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/arch/i386/drivers/net/undirom.c
Expand Up @@ -188,9 +188,9 @@ static void undirom_probe_all_roms ( void ) {

DBG ( "Scanning for PXE expansion ROMs\n" );

/* Scan through expansion ROM region at 2kB intervals */
/* Scan through expansion ROM region at 512 byte intervals */
for ( rom_segment = 0xc000 ; rom_segment < 0x10000 ;
rom_segment += 0x80 ) {
rom_segment += 0x20 ) {
undirom_probe ( rom_segment );
}

Expand Down

0 comments on commit 6df82b1

Please sign in to comment.