Linux: intel: Remove the bitwise zero complement to simplify the protnone mask calculation

This commit is contained in:
Gustavo Moreira
2024-11-27 18:10:14 +11:00
parent 641e008caf
commit eff2a529c8
+1 -1
View File
@@ -569,7 +569,7 @@ class LinuxMixin(Intel):
def _protnone_mask(self, entry: int) -> int:
"""Gets a mask to XOR with the page table entry to get the correct PFN"""
return ~0 & self._register_mask if self._pte_needs_invert(entry) else 0
return self._register_mask if self._pte_needs_invert(entry) else 0
def _pte_pfn(self, entry: int) -> int:
"""Extracts the page frame number from the page table entry"""