summaryrefslogtreecommitdiff
path: root/src/cpu
diff options
context:
space:
mode:
authorPatrick Rudolph <patrick.rudolph@9elements.com>2020-10-21 19:00:04 +0200
committerMichael Niewöhner <foss@mniewoehner.de>2020-10-21 17:52:24 +0000
commit3e69c0a07787d9f55915181c39ba4dbaeb258a05 (patch)
treef951ddc111731b37299e137409fd8b482143324f /src/cpu
parent389cb30ceddba90ce2d7dd0fa0cec1ff54ff1ae4 (diff)
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>
Diffstat (limited to 'src/cpu')
-rw-r--r--src/cpu/intel/common/common_init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cpu/intel/common/common_init.c b/src/cpu/intel/common/common_init.c
index 45680146ad..a54e89183f 100644
--- a/src/cpu/intel/common/common_init.c
+++ b/src/cpu/intel/common/common_init.c
@@ -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 */