prepare for v2 migration. more edits coming

This commit is contained in:
bunnie 2022-04-19 00:44:30 +08:00
parent 811b8cff3a
commit ba3639b00a

View file

@ -608,7 +608,7 @@ class Pte:
return self.bytes
def addr(self):
return int.from_bytes(self.bytes[:7], 'little')
return int.from_bytes(self.bytes[:7], 'little') * VPAGE_SIZE
def flags(self):
if self.bytes[6] == 1:
return 'CLN'