mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-11 01:06:01 +03:00
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:
parent
280e99073b
commit
87aabb5ef7
Notes:
sideshowbarker
2024-07-18 02:13:10 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/87aabb5ef7 Pull-request: https://github.com/SerenityOS/serenity/pull/13574 Reviewed-by: https://github.com/IdanHo ✅
@ -142,7 +142,7 @@ AK_MAKE_ARBITRARY_SIZED_ENUM(CPUFeature, u256,
|
||||
AVX512_VBMI = CPUFeature(1u) << 97u, // AVX-512 Vector Bit Manipulation Instructions
|
||||
UMIP = CPUFeature(1u) << 98u, // UMIP
|
||||
PKU = CPUFeature(1u) << 99u, // Memory Protection Keys for User-mode pages
|
||||
OSPKU = CPUFeature(1u) << 100u, // PKU enabled by OS
|
||||
OSPKE = CPUFeature(1u) << 100u, // PKU enabled by OS
|
||||
WAITPKG = CPUFeature(1u) << 101u, // Timed pause and user-level monitor/wait
|
||||
AVX512_VBMI2 = CPUFeature(1u) << 102u, // AVX-512 Vector Bit Manipulation Instructions 2
|
||||
CET_SS = CPUFeature(1u) << 103u, // Control Flow Enforcement (CET) Shadow Stack
|
||||
|
@ -206,8 +206,8 @@ StringView cpu_feature_to_string_view(CPUFeature::Type const& feature)
|
||||
return "umip"sv;
|
||||
if (feature == CPUFeature::PKU)
|
||||
return "pku"sv;
|
||||
if (feature == CPUFeature::OSPKU)
|
||||
return "ospku"sv;
|
||||
if (feature == CPUFeature::OSPKE)
|
||||
return "ospke"sv;
|
||||
if (feature == CPUFeature::WAITPKG)
|
||||
return "waitpkg"sv;
|
||||
if (feature == CPUFeature::AVX512_VBMI2)
|
||||
|
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user