Adjusted bit operation for PFN calculation

This commit is contained in:
Frank Block
2021-03-11 23:33:39 +01:00
committed by GitHub
parent 085aacc86a
commit 5d55bcfa52
@@ -972,7 +972,8 @@ class CONTROL_AREA(objects.StructType):
# If the entry is not a valid physical address then see if it is in transition.
elif mmpte.u.Trans.Transition == 1:
physoffset = (mmpte.u.Trans.PageFrameNumber &~ (0b1111 << 32)) << 12
# Strips the bit flag in 'PageFrameNumber' for pages in transition state
physoffset = (mmpte.u.Trans.PageFrameNumber & (( 1 << 33 ) - 1 ) ) << 12
yield physoffset, file_offset, self.PAGE_SIZE
# Go to the next PTE entry