diff options
-rw-r--r-- | arch/xtensa/mm/init.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/xtensa/mm/init.c b/arch/xtensa/mm/init.c index d70ba9333f44..03bd025307e3 100644 --- a/arch/xtensa/mm/init.c +++ b/arch/xtensa/mm/init.c | |||
@@ -32,6 +32,17 @@ | |||
32 | 32 | ||
33 | struct sysmem_info sysmem __initdata; | 33 | struct sysmem_info sysmem __initdata; |
34 | 34 | ||
35 | static void __init sysmem_dump(void) | ||
36 | { | ||
37 | unsigned i; | ||
38 | |||
39 | pr_debug("Sysmem:\n"); | ||
40 | for (i = 0; i < sysmem.nr_banks; ++i) | ||
41 | pr_debug(" 0x%08lx - 0x%08lx (%ldK)\n", | ||
42 | sysmem.bank[i].start, sysmem.bank[i].end, | ||
43 | (sysmem.bank[i].end - sysmem.bank[i].start) >> 10); | ||
44 | } | ||
45 | |||
35 | /* | 46 | /* |
36 | * Find bank with maximal .start such that bank.start <= start | 47 | * Find bank with maximal .start such that bank.start <= start |
37 | */ | 48 | */ |
@@ -227,6 +238,7 @@ void __init bootmem_init(void) | |||
227 | unsigned long bootmap_start, bootmap_size; | 238 | unsigned long bootmap_start, bootmap_size; |
228 | int i; | 239 | int i; |
229 | 240 | ||
241 | sysmem_dump(); | ||
230 | max_low_pfn = max_pfn = 0; | 242 | max_low_pfn = max_pfn = 0; |
231 | min_low_pfn = ~0; | 243 | min_low_pfn = ~0; |
232 | 244 | ||