Selaa lähdekoodia

[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>
tags/v0.9.4
Michael Brown 17 vuotta sitten
vanhempi
commit
6df82b1a9d
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2
    2
      src/arch/i386/drivers/net/undirom.c

+ 2
- 2
src/arch/i386/drivers/net/undirom.c Näytä tiedosto

188
 
188
 
189
 	DBG ( "Scanning for PXE expansion ROMs\n" );
189
 	DBG ( "Scanning for PXE expansion ROMs\n" );
190
 
190
 
191
-	/* Scan through expansion ROM region at 2kB intervals */
191
+	/* Scan through expansion ROM region at 512 byte intervals */
192
 	for ( rom_segment = 0xc000 ; rom_segment < 0x10000 ;
192
 	for ( rom_segment = 0xc000 ; rom_segment < 0x10000 ;
193
-	      rom_segment += 0x80 ) {
193
+	      rom_segment += 0x20 ) {
194
 		undirom_probe ( rom_segment );
194
 		undirom_probe ( rom_segment );
195
 	}
195
 	}
196
 
196
 

Loading…
Peruuta
Tallenna