aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2006-05-24 17:40:49 -0700
committerH. Peter Anvin <hpa@zytor.com>2006-05-24 17:40:49 -0700
commitc4690b06ab1aaafc553a8140a53ea3f78312947d (patch)
treec0760ca326140a05b33b8c4f4c0f3fdd1ce78a9b
parentc3891b86a346d63e074735ff61ee4322c5f5c109 (diff)
downloadsyslinux.git-c4690b06ab1aaafc553a8140a53ea3f78312947d.tar.gz
syslinux.git-c4690b06ab1aaafc553a8140a53ea3f78312947d.tar.xz
syslinux.git-c4690b06ab1aaafc553a8140a53ea3f78312947d.zip
mboot.c: allow memory addresses as jmp arguments.
jmp in x86 can take a memory argument, and since gcc knows everything that happens all the way up to the jump, allowing it there is safe. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r--com32/modules/mboot.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/com32/modules/mboot.c b/com32/modules/mboot.c
index 3150c510..69eed5da 100644
--- a/com32/modules/mboot.c
+++ b/com32/modules/mboot.c
@@ -867,8 +867,8 @@ 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"
- : : "a" (0x2badb002), "b" (mbi_run_addr), "cdSD" (entry));
+ asm volatile ("jmp *%2"
+ : : "a" (0x2badb002), "b" (mbi_run_addr), "cdSDm" (entry));
}
static void trampoline_end(void) {}