test memory info
This commit is contained in:
@@ -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(){
|
||||
|
||||
Reference in New Issue
Block a user