VMM - free_page deos not unset P2 entry if not asked to

This commit is contained in:
2017-12-29 23:35:34 +01:00
parent 3134a1d6ad
commit 992930d293
2 changed files with 11 additions and 0 deletions

View File

@@ -83,6 +83,8 @@ void free_page(void *P4, uintptr_t addr, int free)
return;
P1e(P4, addr).value = 0;
if(!free) return;
union PTE *pt;
pt = PT(P2e(P4, addr).value);