summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPatrick Rudolph <patrick.rudolph@9elements.com>2020-11-30 19:33:06 +0100
committerPatrick Rudolph <siro@das-labor.org>2020-12-10 07:30:56 +0000
commit40dc53a1a1360fe49466dad6998dff042bca3727 (patch)
tree5b915575616b80e34e34023624c88c57f3884ec1 /src
parent547e5572cf89995e780e54ac0cccbe6e592335f0 (diff)
cpu/x86/64bit/exit32.inc: Don't invalidate cache in CAR
Change-Id: I4a4e988d38b548e1c88ffcc5f5ada2e91ff6ba91 Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/48178 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Diffstat (limited to 'src')
-rw-r--r--src/cpu/x86/64bit/exit32.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cpu/x86/64bit/exit32.inc b/src/cpu/x86/64bit/exit32.inc
index 6722cfdf3f..91cccb535e 100644
--- a/src/cpu/x86/64bit/exit32.inc
+++ b/src/cpu/x86/64bit/exit32.inc
@@ -23,9 +23,10 @@
#endif
drop_longmode:
+#if !ENV_CACHE_AS_RAM
/* Ensure cache is clean. */
wbinvd
-
+#endif
/* Set 32-bit code segment and ss */
mov $CODE_SEG, %rcx
/* SetCodeSelector32 will drop us to protected mode on return */