* ARM: print memory map before starting kernel

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39058 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ithamar R. Adema 2010-10-23 08:51:09 +00:00
parent 228b810454
commit e8b7cfe80e

View File

@ -32,13 +32,10 @@
#endif #endif
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
/*#define TRACE_MEMORY_MAP #define TRACE_MEMORY_MAP
// Define this to print the memory map to serial debug, // Define this to print the memory map to serial debug,
// You also need to define ENABLE_SERIAL in serial.cpp // You also need to define ENABLE_SERIAL in serial.cpp
// for output to work. // for output to work.
*/
/* /*
@ -547,15 +544,27 @@ mmu_init_for_kernel(void)
gKernelArgs.virtual_allocated_range[0].size gKernelArgs.virtual_allocated_range[0].size
= sNextVirtualAddress - KERNEL_BASE; = sNextVirtualAddress - KERNEL_BASE;
gKernelArgs.num_virtual_allocated_ranges = 1; gKernelArgs.num_virtual_allocated_ranges = 1;
/*
// sort the address ranges #ifdef TRACE_MEMORY_MAP
sort_addr_range(gKernelArgs.physical_memory_range, {
gKernelArgs.num_physical_memory_ranges); uint32 i;
sort_addr_range(gKernelArgs.physical_allocated_range,
gKernelArgs.num_physical_allocated_ranges); dprintf("phys memory ranges:\n");
sort_addr_range(gKernelArgs.virtual_allocated_range, for (i = 0; i < gKernelArgs.num_physical_memory_ranges; i++) {
gKernelArgs.num_virtual_allocated_ranges); dprintf(" base 0x%08lx, length 0x%08lx\n", gKernelArgs.physical_memory_range[i].start, gKernelArgs.physical_memory_range[i].size);
*/ }
dprintf("allocated phys memory ranges:\n");
for (i = 0; i < gKernelArgs.num_physical_allocated_ranges; i++) {
dprintf(" base 0x%08lx, length 0x%08lx\n", gKernelArgs.physical_allocated_range[i].start, gKernelArgs.physical_allocated_range[i].size);
}
dprintf("allocated virt memory ranges:\n");
for (i = 0; i < gKernelArgs.num_virtual_allocated_ranges; i++) {
dprintf(" base 0x%08lx, length 0x%08lx\n", gKernelArgs.virtual_allocated_range[i].start, gKernelArgs.virtual_allocated_range[i].size);
}
}
#endif
} }