diff options
author | H. Peter Anvin <hpa@zytor.com> | 2006-05-24 17:40:49 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2006-05-24 17:40:49 -0700 |
commit | c4690b06ab1aaafc553a8140a53ea3f78312947d (patch) | |
tree | c0760ca326140a05b33b8c4f4c0f3fdd1ce78a9b | |
parent | c3891b86a346d63e074735ff61ee4322c5f5c109 (diff) | |
download | syslinux.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.c | 4 |
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) {} |