summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2011-11-21 08:16:20 +0200
committerPatrick Georgi <patrick@georgi-clan.de>2011-11-22 11:17:07 +0100
commit2a40ebca9c21c527afd683beeec51a5fa5a77588 (patch)
tree0a4e9ee503da1ee5d8e232dd807d89ba2eafca57 /src
parentb9136ed8473e610d5532254984a440c1690d0af9 (diff)
Fix post_code in 16bit entry
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>
Diffstat (limited to 'src')
-rw-r--r--src/arch/x86/init/prologue.inc4
-rw-r--r--src/cpu/x86/16bit/entry16.inc2
2 files changed, 2 insertions, 4 deletions
diff --git a/src/arch/x86/init/prologue.inc b/src/arch/x86/init/prologue.inc
index b85c5c0faa..84e465c18e 100644
--- a/src/arch/x86/init/prologue.inc
+++ b/src/arch/x86/init/prologue.inc
@@ -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)
-
diff --git a/src/cpu/x86/16bit/entry16.inc b/src/cpu/x86/16bit/entry16.inc
index 9f4c0e38da..9b7b69c4b7 100644
--- a/src/cpu/x86/16bit/entry16.inc
+++ b/src/cpu/x86/16bit/entry16.inc
@@ -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*/