Skip to content

Commit

Permalink
ARM: 6224/1: print TCM whereabouts in init message
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Linus Walleij authored and Russell King committed Jul 18, 2010
1 parent 5985097 commit 07d2a5c
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions arch/arm/mm/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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),
Expand Down

0 comments on commit 07d2a5c

Please sign in to comment.