23 #ifdef MEMORY_LOGGING_ENABLED 26 #define MACHINE_FORWARD_DECL_ONLY 27 #include "pedigree/kernel/machine/Machine.h" 28 #include "pedigree/kernel/machine/Serial.h" 31 #define DUMP_MEM_INFO \ 34 extern size_t g_FreePages; \ 35 extern size_t g_AllocedPages; \ 36 Serial *pSerial = Machine::instance().getSerial(1); \ 37 NormalStaticString str; \ 39 str += (reinterpret_cast<uintptr_t>( \ 40 VirtualAddressSpace::getKernelAddressSpace().m_HeapEnd) - \ 43 str += "K\tPages: "; \ 44 str += (g_AllocedPages * 4096) / 1024; \ 45 str += "K\t Free: "; \ 46 str += (g_FreePages * 4096) / 1024; \ 48 pSerial->write(str); \