From 6c5ecf313f5b6c0628ae04fef060708a57515445 Mon Sep 17 00:00:00 2001 From: Ada Christine Date: Tue, 15 Feb 2022 21:52:00 +0000 Subject: irq_lock() and irq_unlock() are unnecessary around mmu_get_map and i shot myself in the foot with it --- kc/core/cpu/mmu.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'kc') diff --git a/kc/core/cpu/mmu.c b/kc/core/cpu/mmu.c index 60bee0f..9dd2e41 100644 --- a/kc/core/cpu/mmu.c +++ b/kc/core/cpu/mmu.c @@ -13,13 +13,11 @@ void mmu_set_map(phys_addr_t map) phys_addr_t mmu_get_map(void) { phys_addr_t pm4_phys; - irq_lock(); __asm__ volatile ( "mov %%cr3, %0\n\t" : "=r"(pm4_phys) ); - irq_unlock(); return page_address(pm4_phys, 1); } -- cgit v1.3.1-1-g115d