Correcting the bug of %p modifier

This commit is contained in:
Adrien Bourmault 2019-04-01 22:12:25 +02:00
commit 5d9324ab68
2 changed files with 4 additions and 3 deletions

View File

@ -274,7 +274,7 @@ loop:
// Pointers: %p = %#012x // Pointers: %p = %#012x
// (48-bit pointers have width 12 at least) // (48-bit pointers have width 12 at least)
else if (type == 'p') { else if (type == 'p') {
type = 'x'; base = 16; zero++; hash++; type = 'x'; base = 16; zero++; hash++; l++;
if (width < 12) width = 12; if (width < 12) width = 12;
} }

View File

@ -150,13 +150,14 @@ noreturn void BtStartKern(multiboot_info_t *mbInfo, uint mbMagic)
//Memory mapping //Memory mapping
MmInitMemoryMap(); MmInitMemoryMap();
// Several inits
MmInitHeap(); MmInitHeap();
PsInitSched();
//int i = 0; //int i = 0;
//while(i < 512) { KernLog("%d\n", i++);} //while(i < 512) { KernLog("%d\n", i++);}
MmPrintMemoryMap();
PsInitSched(); MmPrintMemoryMap();
// We're out // We're out
PsFiniSched(); PsFiniSched();