diff options
Diffstat (limited to 'arch/arm/mm/init.c')
-rw-r--r-- | arch/arm/mm/init.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/mm/init.c b/arch/arm/mm/init.c index f982606d7bf9..877c492f8e10 100644 --- a/arch/arm/mm/init.c +++ b/arch/arm/mm/init.c | |||
@@ -613,6 +613,14 @@ void __init mem_init(void) | |||
613 | 613 | ||
614 | void free_initmem(void) | 614 | void free_initmem(void) |
615 | { | 615 | { |
616 | #ifdef CONFIG_HAVE_TCM | ||
617 | extern char *__tcm_start, *__tcm_end; | ||
618 | |||
619 | totalram_pages += free_area(__phys_to_pfn(__pa(__tcm_start)), | ||
620 | __phys_to_pfn(__pa(__tcm_end)), | ||
621 | "TCM link"); | ||
622 | #endif | ||
623 | |||
616 | if (!machine_is_integrator() && !machine_is_cintegrator()) | 624 | if (!machine_is_integrator() && !machine_is_cintegrator()) |
617 | totalram_pages += free_area(__phys_to_pfn(__pa(__init_begin)), | 625 | totalram_pages += free_area(__phys_to_pfn(__pa(__init_begin)), |
618 | __phys_to_pfn(__pa(__init_end)), | 626 | __phys_to_pfn(__pa(__init_end)), |