projects
/
platform
/
upstream
/
syslinux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c4690b0
)
Be excrutiatingly correct with inline assembly syntax
syslinux-3.20-pre9
author
H. Peter Anvin
<hpa@zytor.com>
Thu, 25 May 2006 00:45:25 +0000
(17:45 -0700)
committer
H. 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
patch
|
blob
|
history
diff --git
a/com32/modules/mboot.c
b/com32/modules/mboot.c
index
69eed5d
..
45f297f
100644
(file)
--- 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) {}