Correcting the bug of %p modifier
This commit is contained in:
commit
5d9324ab68
|
@ -274,7 +274,7 @@ loop:
|
|||
// Pointers: %p = %#012x
|
||||
// (48-bit pointers have width 12 at least)
|
||||
else if (type == 'p') {
|
||||
type = 'x'; base = 16; zero++; hash++;
|
||||
type = 'x'; base = 16; zero++; hash++; l++;
|
||||
if (width < 12) width = 12;
|
||||
}
|
||||
|
||||
|
|
|
@ -150,13 +150,14 @@ noreturn void BtStartKern(multiboot_info_t *mbInfo, uint mbMagic)
|
|||
//Memory mapping
|
||||
MmInitMemoryMap();
|
||||
|
||||
// Several inits
|
||||
MmInitHeap();
|
||||
PsInitSched();
|
||||
|
||||
//int i = 0;
|
||||
//while(i < 512) { KernLog("%d\n", i++);}
|
||||
MmPrintMemoryMap();
|
||||
|
||||
PsInitSched();
|
||||
MmPrintMemoryMap();
|
||||
|
||||
// We're out
|
||||
PsFiniSched();
|
||||
|
|
Loading…
Reference in New Issue