align address prints

This commit is contained in:
2026-01-11 13:03:52 +01:00
parent d1ee62d612
commit daa4110066

View File

@@ -53,19 +53,25 @@ void PageFrameAllocator::stats(){
if(bitmap[i/8] & (1<<i%8))
pages_available++;
}
DBG << "pages available: " << dec << pages_available << endl;
for(uint64_t i=0; i < 0x2000000/4096/8; i++){
if(i%64 == 0)
DBG << endl << hex << i * 8 * 4096 << " ";
if(i%64 == 0){
DBG << endl << hex << i * 8 * 4096 << " " << flush;
int x,y;
dout.getPos(x,y);
for(uint8_t i=x; i<10; i++){
DBG<<" ";
}
}
if(bitmap[i] == 0xff)
DBG << '#';
else if(bitmap[i] == 0x00)
DBG << '.';
else
DBG << bitmap[i];
DBG << '/';
}
DBG << "\npages available: " << dec << pages_available << endl;
}
PageFrame* PageFrameAllocator::alloc(bool kernel){