From 3d95cf02f3277696ac9997d4567bf8753323dd58 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Mon, 29 May 2023 19:39:35 +0300 Subject: [PATCH] Kernel: We can't lock the MMU lock in load() It needs to be callable always by scheduler --- kernel/arch/x86_64/MMU.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/kernel/arch/x86_64/MMU.cpp b/kernel/arch/x86_64/MMU.cpp index 97cfcc886..a5f4f34f3 100644 --- a/kernel/arch/x86_64/MMU.cpp +++ b/kernel/arch/x86_64/MMU.cpp @@ -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; }