Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F98835423
D25885.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D25885.diff
View Options
Index: head/sys/amd64/amd64/initcpu.c
===================================================================
--- head/sys/amd64/amd64/initcpu.c
+++ head/sys/amd64/amd64/initcpu.c
@@ -86,7 +86,7 @@
case 0x10:
case 0x12:
if ((cpu_feature2 & CPUID2_HV) == 0)
- wrmsr(0xc0011029, rdmsr(0xc0011029) | 1);
+ wrmsr(MSR_DE_CFG, rdmsr(MSR_DE_CFG) | 1);
break;
}
@@ -135,9 +135,9 @@
if (CPUID_TO_FAMILY(cpu_id) == 0x17 && CPUID_TO_MODEL(cpu_id) == 0x1 &&
(cpu_feature2 & CPUID2_HV) == 0) {
/* 1021 */
- msr = rdmsr(0xc0011029);
+ msr = rdmsr(MSR_DE_CFG);
msr |= 0x2000;
- wrmsr(0xc0011029, msr);
+ wrmsr(MSR_DE_CFG, msr);
/* 1033 */
msr = rdmsr(MSR_LS_CFG);
Index: head/sys/x86/include/specialreg.h
===================================================================
--- head/sys/x86/include/specialreg.h
+++ head/sys/x86/include/specialreg.h
@@ -1138,6 +1138,7 @@
#define MSR_EXTFEATURES 0xc0011005 /* Extended CPUID Features override */
#define MSR_LS_CFG 0xc0011020
#define MSR_IC_CFG 0xc0011021 /* Instruction Cache Configuration */
+#define MSR_DE_CFG 0xc0011029 /* Decode Configuration */
/* MSR_VM_CR related */
#define VM_CR_SVMDIS 0x10 /* SVM: disabled by BIOS */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Oct 5, 10:32 PM (21 h, 57 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
13682520
Default Alt Text
D25885.diff (1 KB)
Attached To
Mode
D25885: Add constant for the DE_CFG MSR on AMD CPUs
Attached
Detach File
Event Timeline
Log In to Comment