forked from Bananymous/banan-os
Kernel: We can't lock the MMU lock in load()
It needs to be callable always by scheduler
This commit is contained in:
parent
dd3f34cb2c
commit
3d95cf02f3
|
@ -138,10 +138,6 @@ namespace Kernel
|
||||||
|
|
||||||
void MMU::load()
|
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));
|
asm volatile("movq %0, %%cr3" :: "r"(m_highest_paging_struct));
|
||||||
s_current = this;
|
s_current = this;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue