Browse Source

[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 14 years ago
parent
commit
bae3964e6f
1 changed files with 5 additions and 5 deletions
  1. 5
    5
      src/arch/i386/firmware/pcbios/memmap.c

+ 5
- 5
src/arch/i386/firmware/pcbios/memmap.c View File

139
  * use the E820 memory map obtained via get_memmap();
139
  * use the E820 memory map obtained via get_memmap();
140
  */
140
  */
141
 unsigned int extmemsize ( void ) {
141
 unsigned int extmemsize ( void ) {
142
-	unsigned int extmem;
142
+	unsigned int extmem_e801;
143
+	unsigned int extmem_88;
143
 
144
 
144
 	/* Try INT 15,e801 first, then fall back to INT 15,88 */
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…
Cancel
Save