From 6c02eb2cb54c5013f2bba4622cc1a487bca55d1f Mon Sep 17 00:00:00 2001 From: Yinghai Lu Date: Wed, 14 Dec 2005 23:13:13 +0000 Subject: [PATCH] indirect jmp with * git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2145 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/arch/i386/init/crt0.S.lb | 2 +- src/cpu/amd/car/copy_and_run.c | 2 +- 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" ); }