Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F178003077
D62066.1795737848.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
421 B
Referenced Files
None
Subscribers
None
D62066.1795737848.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 27, 12:04 AM (10 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42026145
Default Alt Text
D62066.1795737848.diff (421 B)
Attached To
Mode
D62066: amd64: Keep PKU off across resume
Attached
Detach File
Event Timeline