diff options
author | Michael Niewöhner <foss@mniewoehner.de> | 2020-10-11 13:00:27 +0200 |
---|---|---|
committer | Nico Huber <nico.h@gmx.de> | 2020-10-19 21:01:04 +0000 |
commit | 8b4a9380b54220a352cbc5eb55f600f5dce8475b (patch) | |
tree | cb52f98934df2411b3e98947cae8d4de9caf6505 /src/cpu/intel/common/common.h | |
parent | e92c84050b7841c1ccb9303b1c01ace9586812e3 (diff) |
soc/intel/skl,cpu/intel: copy AES-NI locking to common cpu code
Copy the AES-NI locking function to common cpu code to be able to reuse
it.
This change only copies the code and adds the MSR header file. Any
further rework and later deduplication on the platforms code is done in
the follow-up changes.
Change-Id: I81ad5c0d4797b139435c57d3af0a95db94a5c15e
Signed-off-by: Michael Niewöhner <foss@mniewoehner.de>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/46272
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'src/cpu/intel/common/common.h')
-rw-r--r-- | src/cpu/intel/common/common.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cpu/intel/common/common.h b/src/cpu/intel/common/common.h index df14668095..aaeca1da10 100644 --- a/src/cpu/intel/common/common.h +++ b/src/cpu/intel/common/common.h @@ -27,4 +27,10 @@ bool intel_ht_supported(void); */ bool intel_ht_sibling(void); +/* + * Lock AES-NI feature (MSR_FEATURE_CONFIG) to prevent unintended disabling + * as suggested in Intel document 325384-070US. + */ +void set_aesni_lock(void); + #endif |