Page MenuHomeFreeBSD

D62066.1795737282.diff
No OneTemporary

Authored By
Unknown
Size
421 B
Referenced Files
None
Subscribers
None

D62066.1795737282.diff

diff --git a/sys/x86/x86/identcpu.c b/sys/x86/x86/identcpu.c
--- a/sys/x86/x86/identcpu.c
+++ b/sys/x86/x86/identcpu.c
@@ -1637,6 +1637,9 @@
if (cpu_high >= 7) {
cpuid_count(7, 0, regs);
+ /* Do not turn PKU back on after fpuinit() turned it off. */
+ if ((cpu_stdext_feature2 & CPUID_STDEXT2_PKU) == 0)
+ regs[2] &= ~CPUID_STDEXT2_PKU;
cpu_stdext_feature2 = regs[2];
cpu_stdext_feature3 = regs[3];
}

File Metadata

Mime Type
text/plain
Expires
Thu, Nov 26, 11:54 PM (10 h, 38 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42026145
Default Alt Text
D62066.1795737282.diff (421 B)

Event Timeline