summaryrefslogtreecommitdiff
path: root/src/soc/amd/common/block/cpu/smm
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/amd/common/block/cpu/smm')
-rw-r--r--src/soc/amd/common/block/cpu/smm/smm_relocate.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/soc/amd/common/block/cpu/smm/smm_relocate.c b/src/soc/amd/common/block/cpu/smm/smm_relocate.c
index 4d33b65314..1b929c7ffa 100644
--- a/src/soc/amd/common/block/cpu/smm/smm_relocate.c
+++ b/src/soc/amd/common/block/cpu/smm/smm_relocate.c
@@ -65,8 +65,7 @@ static void smm_relocation_handler(void)
smm_region(&tseg_base, &tseg_size);
msr_t msr;
- msr.lo = tseg_base;
- msr.hi = 0;
+ msr.raw = tseg_base;
wrmsr(SMM_ADDR_MSR, msr);
msr.lo = ~(tseg_size - 1);
@@ -76,8 +75,7 @@ static void smm_relocation_handler(void)
uintptr_t smbase = smm_get_cpu_smbase(cpu_index());
msr_t smm_base = {
- .hi = 0,
- .lo = smbase
+ .raw = smbase
};
wrmsr(SMM_BASE_MSR, smm_base);