Explorar el Código

[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 hace 15 años
padre
commit
6df82b1a9d
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2
    2
      src/arch/i386/drivers/net/undirom.c

+ 2
- 2
src/arch/i386/drivers/net/undirom.c Ver fichero

@@ -188,9 +188,9 @@ static void undirom_probe_all_roms ( void ) {
188 188
 
189 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 192
 	for ( rom_segment = 0xc000 ; rom_segment < 0x10000 ;
193
-	      rom_segment += 0x80 ) {
193
+	      rom_segment += 0x20 ) {
194 194
 		undirom_probe ( rom_segment );
195 195
 	}
196 196
 

Loading…
Cancelar
Guardar