From 1238065aceb87f670a1b58df602fcf4c047b6e55 Mon Sep 17 00:00:00 2001 From: "Ronald G. Minnich" Date: Sun, 24 Aug 2008 07:08:17 +0000 Subject: [PATCH] It's a good idea to set up the segment registers. Signed-off-by: Ronald G. Minnich Acked-by: Ronald G. Minnich git-svn-id: svn://coreboot.org/repository/coreboot-v3@812 f3766cd6-281f-0410-b1cd-43a5c92072e9 --- arch/x86/amd/stage0.S | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/arch/x86/amd/stage0.S b/arch/x86/amd/stage0.S index d93c470458..2863f3bc02 100644 --- a/arch/x86/amd/stage0.S +++ b/arch/x86/amd/stage0.S @@ -163,6 +163,21 @@ __protected_stage0: /* Save the BIST result */ movl %eax, %ebp + /* Save the BIST value. */ + movl %eax, %ebp + + port80_post(0x01) + + movw $ROM_DATA_SEG, %ax + movw %ax, %ds + movw %ax, %es + movw %ax, %ss + movw %ax, %fs + movw %ax, %gs + + /* Restore the BIST value to %eax. */ + movl %ebp, %eax + /*for normal part %ebx already contain cpu_init_detected from fallback call */ cache_as_ram_setup: