1
0
mirror of https://gitlab.os-k.eu/os-k-team/os-k.git synced 2023-08-25 14:03:10 +02:00

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; //int i = 0;
//while(i < 512) { KernLog("%d\n", i++);} //while(i < 512) { KernLog("%d\n", i++);}
MmPrintMemoryMap();
PsInitSched(); PsInitSched();

View File

@ -100,10 +100,10 @@ static error_t InitMemoryMap(void)
if (memoryMap.freeRamSize < MINIMUM_RAM_SIZE) if (memoryMap.freeRamSize < MINIMUM_RAM_SIZE)
return ENOMEM; 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); memoryMap.freeRamSize / MB, memoryMap.nonfreeRamSize / KB);
KernLog("[InitMemoryMap] Physical Ram Size : %d Mio\n\n", /*DebugLog("[InitMemoryMap] Physical Ram Size : %d Mio\n\n",
(memoryMap.freeRamSize + memoryMap.nonfreeRamSize) / MB); (memoryMap.freeRamSize + memoryMap.nonfreeRamSize) / MB);*/
return EOK; return EOK;
} }