mirror of
https://github.com/RGBCube/serenity
synced 2025-05-20 11:55:08 +00:00
APIC: Enable APIC and start APs
This commit is contained in:
parent
4c8341d080
commit
00a7c48d6e
8 changed files with 263 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue