Make sure we zero bss before calling rombios32 code.
[people/mcb30/legacybios.git] / src / post.c
index 5254997..c5dbaf3 100644 (file)
@@ -381,6 +381,10 @@ post()
 
     printf("BIOS - begin\n\n");
 
+    // clear bss section -- XXX - shouldn't use globals
+    extern char __bss_start[], __bss_end[];
+    memset(__bss_start, 0, __bss_end - __bss_start);
+
     rombios32_init();
 
     init_boot_vectors();