summaryrefslogtreecommitdiff
path: root/src/arch/x86
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2020-08-29 08:21:49 +0200
committerPatrick Georgi <pgeorgi@google.com>2020-08-31 06:45:35 +0000
commit014c88923aa65916438c15599b473885b98cad0b (patch)
treeace4e3ed10a537625a0139eabb9adbf6e4a3e0a3 /src/arch/x86
parent8fadf5aabfa62e35c6de511a9688cf20d8b94f24 (diff)
arch/x86/exit_car.S: Fix checking clflush support
The BT instruction stores its result in CF and not ZF so use the correct jump instruction. This fixes a hang in postcar on CPUs lacking support for this instruction. This concerns older pre-SSE2 hardware. Change-Id: I704e3c579150fb9b9a292ef0e83050e7bf7cb078 Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/44922 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Rudolph <siro@das-labor.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'src/arch/x86')
-rw-r--r--src/arch/x86/exit_car.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arch/x86/exit_car.S b/src/arch/x86/exit_car.S
index dc356b2cf9..fae7899e17 100644
--- a/src/arch/x86/exit_car.S
+++ b/src/arch/x86/exit_car.S
@@ -59,7 +59,7 @@ _start:
movl $1, %eax
cpuid
btl $CPUID_FEATURE_CLFLUSH_BIT, %edx
- jz skip_clflush
+ jnc skip_clflush
clflush _cbmem_top_ptr
skip_clflush: