diff options
author | Andreas Kling <kling@serenityos.org> | 2020-10-18 14:18:38 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-10-18 14:18:38 +0200 |
commit | c7a13b7a741ca05cf67e94bea1eb355e0f9c5947 (patch) | |
tree | 436a61f2d8671197ddb634f777bdce273029a644 /Kernel | |
parent | 24162127ba373ed4d32fc83efa1f48c1a73f8332 (diff) | |
download | serenity-c7a13b7a741ca05cf67e94bea1eb355e0f9c5947.zip |
Kernel: Tweak strange PAGE_ROUND_UP(1) in APIC code
Diffstat (limited to 'Kernel')
-rw-r--r-- | Kernel/Interrupts/APIC.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Interrupts/APIC.cpp b/Kernel/Interrupts/APIC.cpp index 6728015b60..85c40fd58d 100644 --- a/Kernel/Interrupts/APIC.cpp +++ b/Kernel/Interrupts/APIC.cpp @@ -243,7 +243,7 @@ bool APIC::init_bsp() #endif set_base(apic_base); - m_apic_base = MM.allocate_kernel_region(apic_base.page_base(), PAGE_ROUND_UP(1), {}, Region::Access::Read | Region::Access::Write); + m_apic_base = MM.allocate_kernel_region(apic_base.page_base(), PAGE_SIZE, {}, Region::Access::Read | Region::Access::Write); if (!m_apic_base) { klog() << "APIC: Failed to allocate memory for APIC base"; return false; |