From 1a3e9934ed1912fb8bd2a31255789c2d28cf6ffe Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Wed, 24 May 2006 17:45:25 -0700 Subject: Be excrutiatingly correct with inline assembly syntax To be absolutely correct, we're supposed to use %* before an indirect branch target, not just *. Signed-off-by: H. Peter Anvin --- com32/modules/mboot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/com32/modules/mboot.c b/com32/modules/mboot.c index 69eed5da..45f297fd 100644 --- a/com32/modules/mboot.c +++ b/com32/modules/mboot.c @@ -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) {} -- cgit v1.2.1