summaryrefslogtreecommitdiff
path: root/Kernel/VM/MemoryManager.cpp
diff options
context:
space:
mode:
authorTom <tomut@yahoo.com>2019-10-16 10:27:00 -0600
committerAndreas Kling <awesomekling@gmail.com>2019-10-16 19:14:02 +0200
commit00a7c48d6e60b7a89e3ac621997795d4314ca293 (patch)
tree4ffa184a408f911fec1293c31bc5888322de1422 /Kernel/VM/MemoryManager.cpp
parent4c8341d0806bd86553c1939c9910c1f3f2aff6cf (diff)
downloadserenity-00a7c48d6e60b7a89e3ac621997795d4314ca293.zip
APIC: Enable APIC and start APs
Diffstat (limited to 'Kernel/VM/MemoryManager.cpp')
-rw-r--r--Kernel/VM/MemoryManager.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Kernel/VM/MemoryManager.cpp b/Kernel/VM/MemoryManager.cpp
index 16a008236f..74ba159f2f 100644
--- a/Kernel/VM/MemoryManager.cpp
+++ b/Kernel/VM/MemoryManager.cpp
@@ -622,13 +622,14 @@ void MemoryManager::flush_tlb(VirtualAddress vaddr)
: "memory");
}
-void MemoryManager::map_for_kernel(VirtualAddress vaddr, PhysicalAddress paddr)
+void MemoryManager::map_for_kernel(VirtualAddress vaddr, PhysicalAddress paddr, bool cache_disabled)
{
auto& pte = ensure_pte(kernel_page_directory(), vaddr);
pte.set_physical_page_base(paddr.get());
pte.set_present(true);
pte.set_writable(true);
pte.set_user_allowed(false);
+ pte.set_cache_disabled(cache_disabled);
flush_tlb(vaddr);
}