cpu/intel: Use existing defines for MTRR_CAP_MSR
Use existing define for SMRR and PMRR support instead of redefining it in various places. TEST=No functional change, thus untested. Change-Id: Ie366a9d695800acd9713bd4e8393201a1f0a5ab2 Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/91015 Reviewed-by: Angel Pons <th3fanbus@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
fd2cdf206d
commit
dfcd63370d
6 changed files with 5 additions and 15 deletions
|
|
@ -164,7 +164,7 @@ void smm_relocation_handler(int cpu, uintptr_t curr_smbase,
|
|||
relo_params->smrr_mask.lo |= SMRR_PHYS_MASK_LOCK;
|
||||
|
||||
/* Write SMRRs if supported */
|
||||
if (mtrr_cap.lo & SMRR_SUPPORTED)
|
||||
if (mtrr_cap.lo & MTRR_CAP_SMRR)
|
||||
write_smrr(relo_params);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -110,8 +110,6 @@
|
|||
#define MSR_L2_QOS_MASK(reg) (0xd10 + reg)
|
||||
|
||||
/* MTRR_CAP_MSR bits */
|
||||
#define SMRR_SUPPORTED (1<<11)
|
||||
#define PRMRR_SUPPORTED (1<<12)
|
||||
#define SMRR_LOCK_SUPPORTED (1<<14)
|
||||
|
||||
#define SGX_SUPPORTED (1<<2)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue