summaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@stericsson.com>2010-07-12 21:52:34 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2010-07-18 20:29:48 +0100
commit07d2a5c721c6aa2bd69812a74c8b3b116abf3e56 (patch)
tree40ab4a702ab18547aa0be9b84e63da222ff50597 /arch/arm
parent598509779e5b8037d371df764d7438744a24b61f (diff)
downloadop-kernel-dev-07d2a5c721c6aa2bd69812a74c8b3b116abf3e56.zip
op-kernel-dev-07d2a5c721c6aa2bd69812a74c8b3b116abf3e56.tar.gz
ARM: 6224/1: print TCM whereabouts in init message
If TCM is in use, we should display it in the virtual memory layout along with everything else. Signed-off-by: Linus Walleij <linus.walleij@stericsson.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/mm/init.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/arch/arm/mm/init.c b/arch/arm/mm/init.c
index f6a9994..526af48 100644
--- a/arch/arm/mm/init.c
+++ b/arch/arm/mm/init.c
@@ -611,6 +611,14 @@ void __init mem_init(void)
printk(KERN_NOTICE "Virtual kernel memory layout:\n"
" vector : 0x%08lx - 0x%08lx (%4ld kB)\n"
+#ifdef CONFIG_HAVE_TCM
+#ifdef DTCM_OFFSET
+ " DTCM : 0x%08lx - 0x%08lx (%4ld kB)\n"
+#endif
+#ifdef ITCM_OFFSET
+ " ITCM : 0x%08lx - 0x%08lx (%4ld kB)\n"
+#endif
+#endif
" fixmap : 0x%08lx - 0x%08lx (%4ld kB)\n"
#ifdef CONFIG_MMU
" DMA : 0x%08lx - 0x%08lx (%4ld MB)\n"
@@ -627,6 +635,14 @@ void __init mem_init(void)
MLK(UL(CONFIG_VECTORS_BASE), UL(CONFIG_VECTORS_BASE) +
(PAGE_SIZE)),
+#ifdef CONFIG_HAVE_TCM
+#ifdef DTCM_OFFSET
+ MLK(UL(DTCM_OFFSET), UL(DTCM_END + 1)),
+#endif
+#ifdef ITCM_OFFSET
+ MLK(UL(ITCM_OFFSET), UL(ITCM_END + 1)),
+#endif
+#endif
MLK(FIXADDR_START, FIXADDR_TOP),
#ifdef CONFIG_MMU
MLM(CONSISTENT_BASE, CONSISTENT_END),
OpenPOWER on IntegriCloud