|
|
|
@ -78,15 +78,12 @@ namespace nasa
|
|
|
|
|
{
|
|
|
|
|
const auto pml4 =
|
|
|
|
|
reinterpret_cast<ppml4e>(
|
|
|
|
|
set_page(dirbase));
|
|
|
|
|
|
|
|
|
|
pml4[pml4e_index] = pml4e{ NULL };
|
|
|
|
|
set_page(dirbase))[pml4e_index] = pml4e{ NULL };
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void* mem_ctx::set_page(void* addr)
|
|
|
|
|
{
|
|
|
|
|
// table entry change.
|
|
|
|
|
{
|
|
|
|
|
++pte_index;
|
|
|
|
|
if (pte_index >= 511)
|
|
|
|
|
{
|
|
|
|
@ -102,7 +99,6 @@ namespace nasa
|
|
|
|
|
|
|
|
|
|
if (pdpte_index >= 511)
|
|
|
|
|
pdpte_index = 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
pdpte new_pdpte = { NULL };
|
|
|
|
|
new_pdpte.present = true;
|
|
|
|
|