x86/paging: Use ROUNUP() to compute the number of initial slots
This commit is contained in:
parent
730882d615
commit
5f3798921f
@ -38,7 +38,7 @@
|
||||
|
||||
|
||||
#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;
|
||||
|
@ -42,8 +42,9 @@
|
||||
|
||||
|
||||
#define MAX_INITIAL_POOLS \
|
||||
((SMP_MAX_CPUS * TOTAL_SLOTS_PER_CPU + EXTRA_SLOTS \
|
||||
+ kPAEPageTableEntryCount - 1) / kPAEPageTableEntryCount)
|
||||
(ROUNDUP(SMP_MAX_CPUS * TOTAL_SLOTS_PER_CPU + EXTRA_SLOTS, \
|
||||
kPAEPageTableEntryCount) \
|
||||
/ kPAEPageTableEntryCount)
|
||||
|
||||
|
||||
using X86LargePhysicalPageMapper::PhysicalPageSlot;
|
||||
|
Loading…
x
Reference in New Issue
Block a user