diff options
author | Michael Brown <mcb30@etherboot.org> | 2008-09-12 03:10:27 +0100 |
---|---|---|
committer | Michael Brown <mcb30@etherboot.org> | 2008-09-12 03:10:27 +0100 |
commit | 6df82b1a9d85c320086a617e29845ffe192ac0df (patch) | |
tree | ecbe6fa887783383fabbf785003e3434c31c0854 | |
parent | 8223084afc206000312611a3fcfa30a28500d1a3 (diff) | |
download | ipxe-6df82b1a9d85c320086a617e29845ffe192ac0df.tar.gz |
[undi] Scan for UNDI ROMs on 512-byte boundaries rather than 2kB boundaries
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>
-rw-r--r-- | src/arch/i386/drivers/net/undirom.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/arch/i386/drivers/net/undirom.c b/src/arch/i386/drivers/net/undirom.c index f977a553..d40fcd35 100644 --- a/src/arch/i386/drivers/net/undirom.c +++ b/src/arch/i386/drivers/net/undirom.c @@ -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 ); } |