From 14382453349f0ca1c11870ed10f8e7fd839851cc Mon Sep 17 00:00:00 2001 From: Kyösti Mälkki Date: Thu, 13 Jul 2017 14:11:52 +0300 Subject: AMD K8 fam10-15: Tidy up CAR stack switch MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Return to empty stack before making the switch. Change-Id: I6d6f633933fac5bc08d9542c371715f737fb42cf Signed-off-by: Kyösti Mälkki Reviewed-on: https://review.coreboot.org/20574 Tested-by: build bot (Jenkins) Reviewed-by: Arthur Heymans Tested-by: Raptor Engineering Automated Test Stand --- src/cpu/amd/car/cache_as_ram.inc | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'src/cpu/amd/car/cache_as_ram.inc') diff --git a/src/cpu/amd/car/cache_as_ram.inc b/src/cpu/amd/car/cache_as_ram.inc index 4d70c9e6bc..6161048b29 100644 --- a/src/cpu/amd/car/cache_as_ram.inc +++ b/src/cpu/amd/car/cache_as_ram.inc @@ -599,21 +599,14 @@ CAR_FAM10_ap_out: call cache_as_ram_main call post_cache_as_ram + movl %eax, %esp + + call cache_as_ram_new_stack /* We will not go back. */ post_code(0xaf) /* Should never see this POST code. */ - .globl cache_as_ram_switch_stack - -cache_as_ram_switch_stack: - /* Return address. */ - popl %eax - /* New stack. */ - popl %eax - movl %eax, %esp - call cache_as_ram_new_stack - all_mtrr_msrs: /* fixed MTRR MSRs */ .long MTRR_FIX_64K_00000 -- cgit v1.2.3