Add linker magic to ensure 16bit variables aren't repeated in 32bit code.
[seabios.git] / src / memmap.c
index f74f4f2672480d9b19e6a48202066e953ed4584a..2bcb2545f242007d538ea384d57bc27e21cd9fb0 100644 (file)
@@ -142,11 +142,12 @@ memmap_setup()
         dprintf(1, "No room for e820 map!\n");
         return;
     }
+    e820_count = 0;
     e820_list = (void*)bios_table_cur_addr;
     bios_table_cur_addr += msize;
 }
 
-// Copy the temporary e820 map info to its permanent location.
+// Report on final memory locations.
 void
 memmap_finalize()
 {