Kernel: Rename OSPKU CPUID feature flag to OSPKE

Unlike "XSAVE enabled by OS" being indicated by the OSXSAVE flag, in
this case it's "PKU enabled by OS" being indicated by the OSPKE flag.
This commit is contained in:
Linus Groh 2022-04-08 18:18:51 +01:00
parent 280e99073b
commit 87aabb5ef7
Notes: sideshowbarker 2024-07-18 02:13:10 +09:00
3 changed files with 4 additions and 4 deletions

View file

@ -287,7 +287,7 @@ UNMAP_AFTER_INIT void Processor::cpu_detect()
if (extended_features.ecx() & (1 << 3))
m_features |= CPUFeature::PKU;
if (extended_features.ecx() & (1 << 4))
m_features |= CPUFeature::OSPKU;
m_features |= CPUFeature::OSPKE;
if (extended_features.ecx() & (1 << 5))
m_features |= CPUFeature::WAITPKG;
if (extended_features.ecx() & (1 << 6))