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:
parent
8fadf5aabf
commit
014c88923a
|
@ -59,7 +59,7 @@ _start:
|
||||||
movl $1, %eax
|
movl $1, %eax
|
||||||
cpuid
|
cpuid
|
||||||
btl $CPUID_FEATURE_CLFLUSH_BIT, %edx
|
btl $CPUID_FEATURE_CLFLUSH_BIT, %edx
|
||||||
jz skip_clflush
|
jnc skip_clflush
|
||||||
clflush _cbmem_top_ptr
|
clflush _cbmem_top_ptr
|
||||||
|
|
||||||
skip_clflush:
|
skip_clflush:
|
||||||
|
|
Loading…
Reference in New Issue