aboutsummaryrefslogtreecommitdiff
path: root/src/drivers/amd/agesa/cache_as_ram.S
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers/amd/agesa/cache_as_ram.S')
-rw-r--r--src/drivers/amd/agesa/cache_as_ram.S14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/drivers/amd/agesa/cache_as_ram.S b/src/drivers/amd/agesa/cache_as_ram.S
index 4417e64595..1034992e17 100644
--- a/src/drivers/amd/agesa/cache_as_ram.S
+++ b/src/drivers/amd/agesa/cache_as_ram.S
@@ -27,9 +27,17 @@
.code32
.globl _cache_as_ram_setup, _cache_as_ram_setup_end
+.global bootblock_pre_c_entry
_cache_as_ram_setup:
+/*
+ * on entry:
+ * mm0: BIST (ignored)
+ * mm2_mm1: timestamp at bootblock_protected_mode_entry
+ */
+bootblock_pre_c_entry:
+
post_code(0xa0)
AMD_ENABLE_STACK
@@ -51,8 +59,10 @@ _cache_as_ram_setup:
and $0xfffffff0, %esp
sub $8, %esp
- pushl $0 /* tsc[63:32] */
- pushl $0 /* tsc[31:0] */
+ movd %mm2, %eax
+ pushl %eax /* tsc[63:32] */
+ movd %mm1, %eax
+ pushl %eax /* tsc[31:0] */
post_code(0xa2)