cpu/intel/gen1/smmrelocate: Check for sanity on SMRR

This happens when TSEG is found to be unaligned.

Change-Id: Id0c078a880dddb55857af2bca233cf4dee91250a
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-on: https://review.coreboot.org/c/30709
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Arthur Heymans 2019-01-07 15:10:57 +01:00 committed by Patrick Georgi
parent 48bf712d35
commit 786a1fec27
1 changed files with 1 additions and 1 deletions

View File

@ -132,7 +132,7 @@ static void asmlinkage cpu_smm_do_relocation(void *arg)
/* Write SMRR MSRs based on indicated support. */
mtrr_cap = rdmsr(MTRR_CAP_MSR);
if (mtrr_cap.lo & SMRR_SUPPORTED)
if (mtrr_cap.lo & SMRR_SUPPORTED && relo_params->smrr_mask.lo != 0)
write_smrr(relo_params);
southbridge_clear_smi_status();