summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2006-05-24 17:45:25 -0700
committerH. Peter Anvin <hpa@zytor.com>2006-05-24 17:45:25 -0700
commit1a3e9934ed1912fb8bd2a31255789c2d28cf6ffe (patch)
tree9b8d7d2a23c78866a07ffb4fe4361b5dd5b9b4b3
parentc4690b06ab1aaafc553a8140a53ea3f78312947d (diff)
downloadsyslinux-3.20-pre9.tar.gz
Be excrutiatingly correct with inline assembly syntaxsyslinux-3.20-pre9
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>
-rw-r--r--com32/modules/mboot.c2
1 files changed, 1 insertions, 1 deletions
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) {}