diff options
Diffstat (limited to 'arch/powerpc/mm/mem.c')
| -rw-r--r-- | arch/powerpc/mm/mem.c | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/arch/powerpc/mm/mem.c b/arch/powerpc/mm/mem.c index f668fa9ba804..579382c163a9 100644 --- a/arch/powerpc/mm/mem.c +++ b/arch/powerpc/mm/mem.c | |||
| @@ -57,7 +57,7 @@ | |||
| 57 | 57 | ||
| 58 | int init_bootmem_done; | 58 | int init_bootmem_done; |
| 59 | int mem_init_done; | 59 | int mem_init_done; |
| 60 | unsigned long memory_limit; | 60 | phys_addr_t memory_limit; |
| 61 | 61 | ||
| 62 | #ifdef CONFIG_HIGHMEM | 62 | #ifdef CONFIG_HIGHMEM |
| 63 | pte_t *kmap_pte; | 63 | pte_t *kmap_pte; |
| @@ -380,6 +380,23 @@ void __init mem_init(void) | |||
| 380 | bsssize >> 10, | 380 | bsssize >> 10, |
| 381 | initsize >> 10); | 381 | initsize >> 10); |
| 382 | 382 | ||
| 383 | #ifdef CONFIG_PPC32 | ||
| 384 | pr_info("Kernel virtual memory layout:\n"); | ||
| 385 | pr_info(" * 0x%08lx..0x%08lx : fixmap\n", FIXADDR_START, FIXADDR_TOP); | ||
| 386 | #ifdef CONFIG_HIGHMEM | ||
| 387 | pr_info(" * 0x%08lx..0x%08lx : highmem PTEs\n", | ||
| 388 | PKMAP_BASE, PKMAP_ADDR(LAST_PKMAP)); | ||
| 389 | #endif /* CONFIG_HIGHMEM */ | ||
| 390 | #ifdef CONFIG_NOT_COHERENT_CACHE | ||
| 391 | pr_info(" * 0x%08lx..0x%08lx : consistent mem\n", | ||
| 392 | IOREMAP_TOP, IOREMAP_TOP + CONFIG_CONSISTENT_SIZE); | ||
| 393 | #endif /* CONFIG_NOT_COHERENT_CACHE */ | ||
| 394 | pr_info(" * 0x%08lx..0x%08lx : early ioremap\n", | ||
| 395 | ioremap_bot, IOREMAP_TOP); | ||
| 396 | pr_info(" * 0x%08lx..0x%08lx : vmalloc & ioremap\n", | ||
| 397 | VMALLOC_START, VMALLOC_END); | ||
| 398 | #endif /* CONFIG_PPC32 */ | ||
| 399 | |||
| 383 | mem_init_done = 1; | 400 | mem_init_done = 1; |
| 384 | } | 401 | } |
| 385 | 402 | ||
