Be excrutiatingly correct with inline assembly syntax syslinux-3.20-pre9
authorH. Peter Anvin <hpa@zytor.com>
Thu, 25 May 2006 00:45:25 +0000 (17:45 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Thu, 25 May 2006 00:45:25 +0000 (17:45 -0700)
To be absolutely correct, we're supposed to use %* before an indirect
branch target, not just *.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
com32/modules/mboot.c

index 69eed5d..45f297f 100644 (file)
@@ -867,7 +867,7 @@ static void trampoline_start(section_t *secs, int sec_count,
      *
      * EAX must be 0x2badb002 and EBX must point to the MBI when we jump. */
 
-    asm volatile ("jmp *%2"
+    asm volatile ("jmp %*%2"
                   : : "a" (0x2badb002), "b" (mbi_run_addr), "cdSDm" (entry));
 }
 static void trampoline_end(void) {}