Explorar el Código

[pcbios] Always show INT 15,88 result under DEBUG=memmap

Always call INT 15,88 even if we don't use the result.  This allows
DEBUG=memmap to show the complete result set returned by all of the
INT 15 memory-map calls.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown hace 14 años
padre
commit
bae3964e6f
Se han modificado 1 ficheros con 5 adiciones y 5 borrados
  1. 5
    5
      src/arch/i386/firmware/pcbios/memmap.c

+ 5
- 5
src/arch/i386/firmware/pcbios/memmap.c Ver fichero

@@ -139,13 +139,13 @@ static unsigned int extmemsize_88 ( void ) {
139 139
  * use the E820 memory map obtained via get_memmap();
140 140
  */
141 141
 unsigned int extmemsize ( void ) {
142
-	unsigned int extmem;
142
+	unsigned int extmem_e801;
143
+	unsigned int extmem_88;
143 144
 
144 145
 	/* Try INT 15,e801 first, then fall back to INT 15,88 */
145
-	extmem = extmemsize_e801();
146
-	if ( ! extmem )
147
-		extmem = extmemsize_88();
148
-	return extmem;
146
+	extmem_88 = extmemsize_88();
147
+	extmem_e801 = extmemsize_e801();
148
+	return ( extmem_e801 ? extmem_e801 : extmem_88 );
149 149
 }
150 150
 
151 151
 /**

Loading…
Cancelar
Guardar