Fix post_code in 16bit entry
authorKyösti Mälkki <kyosti.malkki@gmail.com>
Mon, 21 Nov 2011 06:16:20 +0000 (08:16 +0200)
committerPatrick Georgi <patrick@georgi-clan.de>
Tue, 22 Nov 2011 10:17:07 +0000 (11:17 +0100)
Relocate early post_code() so it gets executed and does not corrupt
BIST at %eax.

Change-Id: Ieeebcb23f7c327e501b410eaa60d1e49110ee988
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: http://review.coreboot.org/439
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
src/arch/x86/init/prologue.inc
src/cpu/x86/16bit/entry16.inc

index b85c5c0faa440a8e9b6c987e0e76985aa0040707..84e465c18ecfe4fcf7e72f99ac049fc5c90e30af 100644 (file)
@@ -23,7 +23,3 @@
 .section ".rom.data", "a", @progbits
 .section ".rom.text", "ax", @progbits
 
-/* This is the entry code. The code in the .reset section jumps here. */
-
-       post_code(POST_RESET_VECTOR_CORRECT)
-
index 9f4c0e38dae639bd5f9a26f0fe0c53429bdb12bb..9b7b69c4b7325a37e69a701656450d6f03bfcdb7 100644 (file)
@@ -36,6 +36,8 @@ _start:
        /* Save the BIST result */
        movl    %eax, %ebp
 
+       post_code(POST_RESET_VECTOR_CORRECT)
+
 /* thanks to kmliu@sis.tw.com for this TBL fix ... */
 /**/
 /* IMMEDIATELY invalidate the translation lookaside buffer before executing*/