|
|
@ -76,9 +76,8 @@ namespace nasa
|
|
|
|
|
|
|
|
|
|
|
|
mem_ctx::~mem_ctx()
|
|
|
|
mem_ctx::~mem_ctx()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// remove pml4e
|
|
|
|
set_pml4e(reinterpret_cast<::ppml4e>(get_dirbase()) + this->pml4e_index, pml4e{NULL});
|
|
|
|
pml4e null_value{ NULL };
|
|
|
|
while (!SwitchToThread());
|
|
|
|
set_pml4e(reinterpret_cast<::ppml4e>(get_dirbase()) + this->pml4e_index, null_value, true);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void* mem_ctx::set_page(void* addr)
|
|
|
|
void* mem_ctx::set_page(void* addr)
|
|
|
|