[syslinux] Re: mboot.c32, weird e820 map on HP blade machine, possible memory corruption

Tim Deegan Tim.Deegan at cl.cam.ac.uk
Wed Mar 15 02:24:14 PST 2006


Hi Ram,

Just saw your latest message about optimization levels.  Does explicitly
clearing the registers help?  Shouldn't make a difference, since es:edi
is the only address we pass, but...

--- old/mboot.c 2006-03-15 10:12:43.000000000 +0000
+++ ./mboot.c   2006-03-15 10:13:21.000000000 +0000
@@ -359,6 +359,7 @@
     while(((void *)(e820 + 1)) < __com32.cs_bounce +
     __com32.cs_bounce_size) 
     {
         memset(e820, 0, sizeof (*e820));
+        memset(&regs_in, 0, sizeof regs_in);
         e820->size = sizeof(*e820) - sizeof(e820->size);
       
         /* Ask the BIOS to fill in this descriptor */




More information about the Syslinux mailing list