|
@@ -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
|
/**
|