summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPatrick Rudolph <patrick.rudolph@9elements.com>2020-11-30 13:53:52 +0100
committerPatrick Rudolph <siro@das-labor.org>2020-12-01 16:01:58 +0000
commited5835a04dce6d9f62d5db1ae22fe579e8efe08a (patch)
treebd0810b6d58d6f6f0a2706dc325bb77d8b129890 /src
parent2b77112e66d9d1678e68b7513bc916d49230993f (diff)
soc/intel/common/block/cpu/car/exit_car: Fix compilation on x86_64
Change-Id: Ieac4a4924ff4684b2a419471cd54e3d3b1f5bbe6 Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/48171 Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src')
-rw-r--r--src/soc/intel/common/block/cpu/car/exit_car.S8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/soc/intel/common/block/cpu/car/exit_car.S b/src/soc/intel/common/block/cpu/car/exit_car.S
index 9480a5a9c6..191232a3b0 100644
--- a/src/soc/intel/common/block/cpu/car/exit_car.S
+++ b/src/soc/intel/common/block/cpu/car/exit_car.S
@@ -28,7 +28,11 @@ chipset_teardown_car:
* Retrieve return address from stack as it will get trashed below if
* execution is utilizing the cache-as-ram stack.
*/
+#if ENV_X86_64
+ pop %rbx
+#else
pop %ebx
+#endif
/* Disable MTRRs. */
mov $(MTRR_DEF_TYPE_MSR), %ecx
@@ -95,4 +99,8 @@ car_nem_enhanced_teardown:
#endif
/* Return to caller. */
+#if ENV_X86_64
+ jmp *%rbx
+#else
jmp *%ebx
+#endif