aboutsummaryrefslogtreecommitdiff
path: root/sys/amd64/amd64/initcpu.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/amd64/amd64/initcpu.c')
-rw-r--r--sys/amd64/amd64/initcpu.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/amd64/amd64/initcpu.c b/sys/amd64/amd64/initcpu.c
index 4debe89426df..a048c08fc9ae 100644
--- a/sys/amd64/amd64/initcpu.c
+++ b/sys/amd64/amd64/initcpu.c
@@ -101,7 +101,8 @@ init_amd(void)
case 0x10:
case 0x12:
if ((cpu_feature2 & CPUID2_HV) == 0)
- wrmsr(MSR_DE_CFG, rdmsr(MSR_DE_CFG) | 1);
+ wrmsr(MSR_DE_CFG, rdmsr(MSR_DE_CFG) |
+ DE_CFG_10H_12H_STACK_POINTER_JUMP_FIX_BIT);
break;
}
@@ -151,7 +152,7 @@ init_amd(void)
(cpu_feature2 & CPUID2_HV) == 0) {
/* 1021 */
msr = rdmsr(MSR_DE_CFG);
- msr |= 0x2000;
+ msr |= DE_CFG_ZEN_LOAD_STALE_DATA_FIX_BIT;
wrmsr(MSR_DE_CFG, msr);
/* 1033 */