From: Michael Brown Date: Fri, 12 Sep 2008 02:10:27 +0000 (+0100) Subject: [undi] Scan for UNDI ROMs on 512-byte boundaries rather than 2kB boundaries X-Git-Tag: v0.9.4~23 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6df82b1a9d85c320086a617e29845ffe192ac0df;p=thirdparty%2Fipxe.git [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 --- diff --git a/src/arch/i386/drivers/net/undirom.c b/src/arch/i386/drivers/net/undirom.c index f977a5532..d40fcd35b 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 ); }