summaryrefslogtreecommitdiff
path: root/kc
diff options
context:
space:
mode:
authorAda Christine <adachristine18@gmail.com>2022-02-15 21:52:00 +0000
committerAda Christine <adachristine18@gmail.com>2022-02-15 21:52:00 +0000
commit6c5ecf313f5b6c0628ae04fef060708a57515445 (patch)
treec0e1b63fb8ab06e0641db599c54012707ec80d14 /kc
parent5fc386102380e6c15c81df4fd750f54641535eaa (diff)
irq_lock() and irq_unlock() are unnecessary around mmu_get_map and i shot myself in the foot with it
Diffstat (limited to 'kc')
-rw-r--r--kc/core/cpu/mmu.c2
1 files changed, 0 insertions, 2 deletions
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);
}