Commit 8585b316 authored by Max Filippov's avatar Max Filippov

xtensa: dump sysmem from the bootmem_init

Debug dump of physical memory configuration. Useful for inspection of
resulting memory map, esp. in the presence of memmap= kernel option.
Signed-off-by: default avatarMax Filippov <jcmvbkbc@gmail.com>
parent 06bd2824
...@@ -32,6 +32,17 @@ ...@@ -32,6 +32,17 @@
struct sysmem_info sysmem __initdata; struct sysmem_info sysmem __initdata;
static void __init sysmem_dump(void)
{
unsigned i;
pr_debug("Sysmem:\n");
for (i = 0; i < sysmem.nr_banks; ++i)
pr_debug(" 0x%08lx - 0x%08lx (%ldK)\n",
sysmem.bank[i].start, sysmem.bank[i].end,
(sysmem.bank[i].end - sysmem.bank[i].start) >> 10);
}
/* /*
* Find bank with maximal .start such that bank.start <= start * Find bank with maximal .start such that bank.start <= start
*/ */
...@@ -227,6 +238,7 @@ void __init bootmem_init(void) ...@@ -227,6 +238,7 @@ void __init bootmem_init(void)
unsigned long bootmap_start, bootmap_size; unsigned long bootmap_start, bootmap_size;
int i; int i;
sysmem_dump();
max_low_pfn = max_pfn = 0; max_low_pfn = max_pfn = 0;
min_low_pfn = ~0; min_low_pfn = ~0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment