Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 2722 → Rev 2723

/trunk/kernel/arch/ia32/src/mm/memory_init.c/memory_init.c
46,34 → 46,5
return e801memorysize * 1024;
}
 
void memory_print_map(void)
{
uint8_t i;
for (i = 0; i < e820counter; i++) {
printf("E820 base: %#.16llx size: %#.16llx type: ", e820table[i].base_address, e820table[i].size);
switch (e820table[i].type) {
case MEMMAP_MEMORY_AVAILABLE:
printf("available memory\n");
break;
case MEMMAP_MEMORY_RESERVED:
printf("reserved memory\n");
break;
case MEMMAP_MEMORY_ACPI:
printf("ACPI table\n");
break;
case MEMMAP_MEMORY_NVS:
printf("NVS\n");
break;
case MEMMAP_MEMORY_UNUSABLE:
printf("unusable memory\n");
break;
default:
printf("undefined memory type\n");
}
}
 
}
 
/** @}
*/