indirect jmp with *
authorYinghai Lu <yinghailu@gmail.com>
Wed, 14 Dec 2005 23:13:13 +0000 (23:13 +0000)
committerYinghai Lu <yinghailu@gmail.com>
Wed, 14 Dec 2005 23:13:13 +0000 (23:13 +0000)
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2145 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

src/arch/i386/init/crt0.S.lb
src/cpu/amd/car/copy_and_run.c

index 67ef91059b64b6ed169b8cb56922e750670a80c2..1b4ce4a0a1bd28b21d78cade35a42b1eca6703bf 100644 (file)
@@ -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 */
index 9c6508b8d74f5156d658fa6dbfdd6cb77c411060..55068c5511567de0abf49b8b18c41d42adf4ee71 100644 (file)
@@ -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"
        );
 
 }