summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYinghai Lu <yinghailu@gmail.com>2005-12-14 23:13:13 +0000
committerYinghai Lu <yinghailu@gmail.com>2005-12-14 23:13:13 +0000
commit6c02eb2cb54c5013f2bba4622cc1a487bca55d1f (patch)
tree201e82e207043477fc7562c191e44f2fa7dc7dfe /src
parent30576601f6d29a72d5057ac0051ebe3479abc03c (diff)
indirect jmp with *
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2145 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src')
-rw-r--r--src/arch/i386/init/crt0.S.lb2
-rw-r--r--src/cpu/amd/car/copy_and_run.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/arch/i386/init/crt0.S.lb b/src/arch/i386/init/crt0.S.lb
index 67ef91059b..1b4ce4a0a1 100644
--- a/src/arch/i386/init/crt0.S.lb
+++ b/src/arch/i386/init/crt0.S.lb
@@ -163,7 +163,7 @@ decompr_end_n2b:
CONSOLE_DEBUG_TX_STRING($str_pre_main)
leal _iseg, %edi
- jmp %edi
+ jmp *%edi
.Lhlt:
intel_chip_post_macro(0xee) /* post fe */
diff --git a/src/cpu/amd/car/copy_and_run.c b/src/cpu/amd/car/copy_and_run.c
index 9c6508b8d7..55068c5511 100644
--- a/src/cpu/amd/car/copy_and_run.c
+++ b/src/cpu/amd/car/copy_and_run.c
@@ -129,7 +129,7 @@ static void copy_and_run(unsigned cpu_reset)
__asm__ volatile (
"cli\n\t"
"leal _iseg, %edi\n\t"
- "jmp %edi\n\t"
+ "jmp *%edi\n\t"
);
}