20 #include "pedigree/kernel/utilities/MemoryCount.h" 21 #include "pedigree/kernel/Log.h" 22 #include "pedigree/kernel/processor/PhysicalMemoryManager.h" 23 #include "pedigree/kernel/processor/types.h" 25 MemoryCount::MemoryCount(
const char *context)
32 MemoryCount::~MemoryCount()
35 ssize_t diff =
static_cast<ssize_t
>(m_StartPages - m_EndPages);
37 "KERNELELF: Page difference while executing " << m_Context <<
": " 40 "KERNELELF: -> difference is " <<
Dec << ((diff * 4096) / 1024) <<
Hex static PhysicalMemoryManager & instance()
virtual size_t freePageCount() const