From b8ec8918b7c68bec1e8ea1c597e53f6d9aa35f0a 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 97cfcc886b..a5f4f34f30 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; }