align address prints
This commit is contained in:
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user