x86/paging: Use ROUNUP() to compute the number of initial slots
This commit is contained in:
@@ -38,7 +38,7 @@
|
|||||||
|
|
||||||
|
|
||||||
#define MAX_INITIAL_POOLS \
|
#define MAX_INITIAL_POOLS \
|
||||||
((SMP_MAX_CPUS * TOTAL_SLOTS_PER_CPU + EXTRA_SLOTS + 1023) / 1024)
|
(ROUNDUP(SMP_MAX_CPUS * TOTAL_SLOTS_PER_CPU + EXTRA_SLOTS, 1024) / 1024)
|
||||||
|
|
||||||
|
|
||||||
using X86LargePhysicalPageMapper::PhysicalPageSlot;
|
using X86LargePhysicalPageMapper::PhysicalPageSlot;
|
||||||
|
|||||||
@@ -42,8 +42,9 @@
|
|||||||
|
|
||||||
|
|
||||||
#define MAX_INITIAL_POOLS \
|
#define MAX_INITIAL_POOLS \
|
||||||
((SMP_MAX_CPUS * TOTAL_SLOTS_PER_CPU + EXTRA_SLOTS \
|
(ROUNDUP(SMP_MAX_CPUS * TOTAL_SLOTS_PER_CPU + EXTRA_SLOTS, \
|
||||||
+ kPAEPageTableEntryCount - 1) / kPAEPageTableEntryCount)
|
kPAEPageTableEntryCount) \
|
||||||
|
/ kPAEPageTableEntryCount)
|
||||||
|
|
||||||
|
|
||||||
using X86LargePhysicalPageMapper::PhysicalPageSlot;
|
using X86LargePhysicalPageMapper::PhysicalPageSlot;
|
||||||
|
|||||||
Reference in New Issue
Block a user