[syslinux] [PATCH 1/1] mboot.c32: fix register constraints bug

Tim Deegan Tim.Deegan at cl.cam.ac.uk
Wed May 24 01:51:09 PDT 2006


From: Tim Deegan <Tim.Deegan at cl.cam.ac.uk>

Fix register constraints of final jump to kernel entry.  
When compiled with some GCC versions, mboot.c32 would clobber the kernel
load address and try to jump to 0x2badb002.

Signed-off-by: Tim Deegan <Tim.Deegan at cl.cam.ac.uk>

---
--- syslinux-3.20-pre8/com32/modules/mboot.c.orig	2006-05-22 11:06:17.000000000 +0100
+++ syslinux-3.20-pre8/com32/modules/mboot.c	2006-05-24 09:37:14.000000000 +0100
@@ -879,7 +879,7 @@
 
         "jmp *%1"
 
-        : : "m" (mbi_run_addr), "r" (entry));
+        : : "m" (mbi_run_addr), "c" (entry));
 
 }
 static void trampoline_end(void) {}




More information about the Syslinux mailing list