From 090bfc3c8e49c005875086173ad3bc5318a66589 Mon Sep 17 00:00:00 2001 From: Adrien Bourmault Date: Mon, 1 Apr 2019 15:13:45 +0200 Subject: [PATCH] mem_map bug --- kaleid/kernel/init/init.c | 1 + kaleid/kernel/mm/map.c | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/kaleid/kernel/init/init.c b/kaleid/kernel/init/init.c index 31e46cb..208efb0 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(); diff --git a/kaleid/kernel/mm/map.c b/kaleid/kernel/mm/map.c index 3d39401..8738e04 100644 --- a/kaleid/kernel/mm/map.c +++ b/kaleid/kernel/mm/map.c @@ -100,10 +100,10 @@ static error_t InitMemoryMap(void) if (memoryMap.freeRamSize < MINIMUM_RAM_SIZE) return ENOMEM; - KernLog("[InitMemoryMap] Available Ram Size : %u Mio, Used Ram Size : %u Kio\n", + DebugLog("[InitMemoryMap] Available Ram Size : %u Mio, Used Ram Size : %u Kio\n\n", memoryMap.freeRamSize / MB, memoryMap.nonfreeRamSize / KB); - KernLog("[InitMemoryMap] Physical Ram Size : %d Mio\n\n", - (memoryMap.freeRamSize + memoryMap.nonfreeRamSize) / MB); + /*DebugLog("[InitMemoryMap] Physical Ram Size : %d Mio\n\n", + (memoryMap.freeRamSize + memoryMap.nonfreeRamSize) / MB);*/ return EOK; }