mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-08 10:47:38 +02:00
Linux: intel: Remove the bitwise zero complement to simplify the protnone mask calculation
This commit is contained in:
@@ -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"""
|
||||
|
||||
Reference in New Issue
Block a user