cpu/intel/common: Fix regression
Fix the logic introduced in CB:46276 "cpu/intel/common: only lock AES-NI when supported" which needs to be negated. Change-Id: Icaf882625529842ea0aedf39147fc9a9e6081e43 Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/46634 Reviewed-by: Christian Walter <christian.walter@9elements.com> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Michael Niewöhner <foss@mniewoehner.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
389cb30ced
commit
3e69c0a077
|
@ -273,7 +273,7 @@ void set_aesni_lock(void)
|
|||
if (!CONFIG(SET_MSR_AESNI_LOCK_BIT))
|
||||
return;
|
||||
|
||||
if (cpu_get_feature_flags_ecx() & CPUID_AES)
|
||||
if (!(cpu_get_feature_flags_ecx() & CPUID_AES))
|
||||
return;
|
||||
|
||||
/* Only run once per core as specified in the MSR datasheet */
|
||||
|
|
Loading…
Reference in New Issue