mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 00:25:12 +00:00
APIC: Enable APIC and start APs
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user