mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-24 10:22:05 -05:00
Kernel: Tweak strange PAGE_ROUND_UP(1) in APIC code
This commit is contained in:
parent
24162127ba
commit
c7a13b7a74
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue