destructor was failing because it was using memcpy to zero a pml4e that

mapped the address it was writing too, now its a move instruction (8
byte move)
merge-requests/1/merge
xerox 4 years ago
parent 6f2b52153d
commit 7ea271bfec

@ -76,8 +76,11 @@ namespace nasa
mem_ctx::~mem_ctx()
{
set_pml4e(reinterpret_cast<::ppml4e>(get_dirbase()) + this->pml4e_index, pml4e{NULL});
while (!SwitchToThread());
const auto pml4 =
reinterpret_cast<ppml4e>(
set_page(dirbase));
pml4[pml4e_index] = pml4e{ NULL };
}
void* mem_ctx::set_page(void* addr)

Loading…
Cancel
Save