when destroying mem_ctx, dont use vdm_ctx to do so, also yeild execution

to cause a context switch...
merge-requests/1/merge
xerox 4 years ago
parent fd095f230d
commit 577cbd52ed

@ -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)

Loading…
Cancel
Save