summaryrefslogtreecommitdiff
path: root/src/security/intel
diff options
context:
space:
mode:
Diffstat (limited to 'src/security/intel')
-rw-r--r--src/security/intel/txt/common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/security/intel/txt/common.c b/src/security/intel/txt/common.c
index 011e8ccd3f..2b7d92627c 100644
--- a/src/security/intel/txt/common.c
+++ b/src/security/intel/txt/common.c
@@ -483,7 +483,7 @@ bool intel_txt_prepare_txt_env(void)
*/
size_t max_mc_msr = mca_get_bank_count();
for (size_t i = 0; i < max_mc_msr; i++) {
- msr = rdmsr(IA32_MC0_STATUS + 4 * i);
+ msr = rdmsr(IA32_MC_STATUS(i));
if (!(msr.hi & MCA_STATUS_HI_UC))
continue;