From 2a40ebca9c21c527afd683beeec51a5fa5a77588 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ky=C3=B6sti=20M=C3=A4lkki?= Date: Mon, 21 Nov 2011 08:16:20 +0200 Subject: [PATCH] Fix post_code in 16bit entry MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-on: http://review.coreboot.org/439 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi --- src/arch/x86/init/prologue.inc | 4 ---- src/cpu/x86/16bit/entry16.inc | 2 ++ 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*/