Fix is_global.

This commit is contained in:
4lDO2
2023-07-16 18:32:34 +02:00
parent e24e8485ba
commit 339984e49b
+1 -1
View File
@@ -120,7 +120,7 @@ impl<A: Arch> PageFlags<A> {
#[inline(always)]
pub fn is_global(&self) -> bool {
// Architecture may use global or non global, support either
self.data & (A::ENTRY_FLAG_NO_GLOBAL | A::ENTRY_FLAG_NO_GLOBAL) == A::ENTRY_FLAG_GLOBAL
self.data & (A::ENTRY_FLAG_GLOBAL | A::ENTRY_FLAG_NO_GLOBAL) == A::ENTRY_FLAG_GLOBAL
}
}