From 0b312f76854d6d32b950c267a8396b178b5c462d Mon Sep 17 00:00:00 2001 From: Adrien Bourmault Date: Mon, 1 Apr 2019 22:10:45 +0200 Subject: [PATCH] Correcting the bug with %p modifier --- kaleid/kernel/buf/bprint.c | 2 +- kaleid/kernel/init/init.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/kaleid/kernel/buf/bprint.c b/kaleid/kernel/buf/bprint.c index b45931f..a75ee22 100644 --- a/kaleid/kernel/buf/bprint.c +++ b/kaleid/kernel/buf/bprint.c @@ -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; } diff --git a/kaleid/kernel/init/init.c b/kaleid/kernel/init/init.c index 31e46cb..2e63b1a 100644 --- a/kaleid/kernel/init/init.c +++ b/kaleid/kernel/init/init.c @@ -154,6 +154,7 @@ noreturn void BtStartKern(multiboot_info_t *mbInfo, uint mbMagic) //int i = 0; //while(i < 512) { KernLog("%d\n", i++);} + //MmPrintMemoryMap(); PsInitSched();