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 ff83f967d8
commit b8ec8918b7
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;
}