VMM -- get_page should include flags

This commit is contained in:
2017-12-27 22:26:06 +01:00
parent 57482136ae
commit cd7ed38a40
2 changed files with 4 additions and 5 deletions

View File

@@ -31,9 +31,8 @@ uintptr_t vmm_get_page(void *P4, uintptr_t addr)
&& P4e(P4, addr).present
&& P3e(P4, addr).present
&& P2e(P4, addr).present
&& P1e(P4, addr).present
)
return MASK_FLAGS(P1e(P4, addr).value);
return P1e(P4, addr).value;
else
return -1;
}