x86/paging: Use ROUNUP() to compute the number of initial slots

This commit is contained in:
Pawel Dziepak 2013-12-05 23:33:03 +01:00
parent 730882d615
commit 5f3798921f
2 changed files with 4 additions and 3 deletions

View File

@ -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;

View File

@ -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;