aboutsummaryrefslogtreecommitdiff
path: root/src/cpu/amd/agesa/cache_as_ram.inc
diff options
context:
space:
mode:
Diffstat (limited to 'src/cpu/amd/agesa/cache_as_ram.inc')
-rw-r--r--src/cpu/amd/agesa/cache_as_ram.inc7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/cpu/amd/agesa/cache_as_ram.inc b/src/cpu/amd/agesa/cache_as_ram.inc
index 293e9a5077..24db6001ea 100644
--- a/src/cpu/amd/agesa/cache_as_ram.inc
+++ b/src/cpu/amd/agesa/cache_as_ram.inc
@@ -61,6 +61,8 @@ cache_as_ram_setup:
post_code(0xa1)
+ AMD_ENABLE_STACK
+
#ifdef __x86_64__
/* switch to 64 bit long mode */
mov %esi, %ecx
@@ -103,10 +105,10 @@ cache_as_ram_setup:
# use call far to switch to 64-bit code segment
ljmp $0x18, $1f
1:
- /* Pass the BIST result */
+ /* Pass the cpu_init_detected */
cvtsd2si %xmm1, %esi
- /* Pass the cpu_init_detected */
+ /* Pass the BIST result */
cvtsd2si %xmm0, %edi
/* align the stack */
@@ -117,7 +119,6 @@ cache_as_ram_setup:
.code32
#else
- AMD_ENABLE_STACK
/* Restore the BIST result */
cvtsd2si %xmm0, %edx