test memory info

This commit is contained in:
2026-01-10 17:21:14 +01:00
parent 262fb26ea9
commit 0e3195ec3d
4 changed files with 21 additions and 4 deletions

View File

@@ -1,7 +1,20 @@
#include "../memory/pageframealloc.h"
#include "../boot/multiboot/data.h"
#include "pageframe.h"
#include "../debug/output.h"
#include "../memory/config.h"
void PageFrameAllocator::init(){
Multiboot::Memory* memory_map_start = Multiboot::getMemoryMap();
dout << "kernel start: " << ___KERNEL_START___;
dout << " kernel end: " << ___KERNEL_END___ << endl;
while(memory_map_start != 0){
dout << "Memory: " << hex << memory_map_start->getStartAddress() << " to " << memory_map_start->getEndAddress() << " is available: " << memory_map_start->isAvailable() << ".\n";
memory_map_start = memory_map_start->getNext();
}
}
void PageFrameAllocator::stats(){