mem_map bug

This commit is contained in:
Adrien Bourmault 2019-04-01 15:13:45 +02:00
parent c1e2eb09c2
commit 090bfc3c8e
2 changed files with 4 additions and 3 deletions

View File

@ -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();

View File

@ -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;
}