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>
This commit is contained in:
Arthur Heymans 2020-08-29 08:21:49 +02:00 committed by Patrick Georgi
parent 8fadf5aabf
commit 014c88923a
1 changed files with 1 additions and 1 deletions

View File

@ -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: