Map 1MiB instead of 1 page for APIC (prep for MSI)

This commit is contained in:
Justin C. Miller
2018-05-06 18:31:00 -07:00
parent 649d6169c9
commit 97fb8ef653

View File

@@ -34,7 +34,11 @@ ioapic_write(uint32_t volatile *base, uint8_t reg, uint32_t value)
apic::apic(uint32_t *base) : apic::apic(uint32_t *base) :
m_base(base) m_base(base)
{ {
g_page_manager.map_offset_pointer(reinterpret_cast<void **>(&m_base), 0x1000); // Map 1MiB of space for the APIC registers and
// MSI area
page_manager::get()->map_offset_pointer(
reinterpret_cast<void **>(&m_base),
0x100000);
} }