Kernel: We can't lock the MMU lock in load()

It needs to be callable always by scheduler
This commit is contained in:
Bananymous 2023-05-29 19:39:35 +03:00
parent dd3f34cb2c
commit 3d95cf02f3
1 changed files with 0 additions and 4 deletions

View File

@ -138,10 +138,6 @@ namespace Kernel
void MMU::load()
{
uintptr_t rsp;
read_rsp(rsp);
ASSERT(!is_page_free(rsp & PAGE_ADDR_MASK));
asm volatile("movq %0, %%cr3" :: "r"(m_highest_paging_struct));
s_current = this;
}