diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-07-31 09:20:02 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-07-31 09:20:02 -0400 |
commit | ceb0885d3b01bb2e2f18765770e212914f2864be (patch) | |
tree | 0952c90cd49704a9172e985ca491d79b60c40bc8 /arch/arm/mm/init.c | |
parent | b31fc7af78e17b0203e1cd5a195c590e8adeae0d (diff) | |
parent | 08458ef6eede6cf7d5a33c3a7c8bcdc3943012c2 (diff) |
Merge branch 'misc' into devel
Conflicts:
arch/arm/mm/init.c
Diffstat (limited to 'arch/arm/mm/init.c')
-rw-r--r-- | arch/arm/mm/init.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/arm/mm/init.c b/arch/arm/mm/init.c index 599d121c81e7..240b68d511dc 100644 --- a/arch/arm/mm/init.c +++ b/arch/arm/mm/init.c | |||
@@ -432,6 +432,11 @@ void __init mem_init(void) | |||
432 | { | 432 | { |
433 | unsigned long reserved_pages, free_pages; | 433 | unsigned long reserved_pages, free_pages; |
434 | int i; | 434 | int i; |
435 | #ifdef CONFIG_HAVE_TCM | ||
436 | /* These pointers are filled in on TCM detection */ | ||
437 | extern u32 dtcm_end; | ||
438 | extern u32 itcm_end; | ||
439 | #endif | ||
435 | 440 | ||
436 | max_mapnr = pfn_to_page(max_pfn + PHYS_PFN_OFFSET) - mem_map; | 441 | max_mapnr = pfn_to_page(max_pfn + PHYS_PFN_OFFSET) - mem_map; |
437 | 442 | ||
@@ -503,6 +508,10 @@ void __init mem_init(void) | |||
503 | 508 | ||
504 | printk(KERN_NOTICE "Virtual kernel memory layout:\n" | 509 | printk(KERN_NOTICE "Virtual kernel memory layout:\n" |
505 | " vector : 0x%08lx - 0x%08lx (%4ld kB)\n" | 510 | " vector : 0x%08lx - 0x%08lx (%4ld kB)\n" |
511 | #ifdef CONFIG_HAVE_TCM | ||
512 | " DTCM : 0x%08lx - 0x%08lx (%4ld kB)\n" | ||
513 | " ITCM : 0x%08lx - 0x%08lx (%4ld kB)\n" | ||
514 | #endif | ||
506 | " fixmap : 0x%08lx - 0x%08lx (%4ld kB)\n" | 515 | " fixmap : 0x%08lx - 0x%08lx (%4ld kB)\n" |
507 | #ifdef CONFIG_MMU | 516 | #ifdef CONFIG_MMU |
508 | " DMA : 0x%08lx - 0x%08lx (%4ld MB)\n" | 517 | " DMA : 0x%08lx - 0x%08lx (%4ld MB)\n" |
@@ -519,6 +528,10 @@ void __init mem_init(void) | |||
519 | 528 | ||
520 | MLK(UL(CONFIG_VECTORS_BASE), UL(CONFIG_VECTORS_BASE) + | 529 | MLK(UL(CONFIG_VECTORS_BASE), UL(CONFIG_VECTORS_BASE) + |
521 | (PAGE_SIZE)), | 530 | (PAGE_SIZE)), |
531 | #ifdef CONFIG_HAVE_TCM | ||
532 | MLK(DTCM_OFFSET, (unsigned long) dtcm_end), | ||
533 | MLK(ITCM_OFFSET, (unsigned long) itcm_end), | ||
534 | #endif | ||
522 | MLK(FIXADDR_START, FIXADDR_TOP), | 535 | MLK(FIXADDR_START, FIXADDR_TOP), |
523 | #ifdef CONFIG_MMU | 536 | #ifdef CONFIG_MMU |
524 | MLM(CONSISTENT_BASE, CONSISTENT_END), | 537 | MLM(CONSISTENT_BASE, CONSISTENT_END), |