1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:07:35 +00:00

Kernel: Make Region.cpp compile on aarch64

This commit is contained in:
James Mintram 2022-04-02 23:47:07 +01:00 committed by Brian Gianforcaro
parent a883079b29
commit 627fd231d5
3 changed files with 25 additions and 4 deletions

View file

@ -397,6 +397,16 @@ public:
static void deferred_call_queue(Function<void()> callback);
ALWAYS_INLINE bool has_nx() const
{
return has_feature(CPUFeature::NX);
}
ALWAYS_INLINE bool has_pat() const
{
return has_feature(CPUFeature::PAT);
}
ALWAYS_INLINE bool has_feature(CPUFeature::Type const& feature) const
{
return m_features.has_flag(feature);