diff options
author | Nicolas Pitre <nicolas.pitre@linaro.org> | 2018-03-08 21:12:04 -0500 |
---|---|---|
committer | Nicolas Pitre <nicolas.pitre@linaro.org> | 2018-03-09 20:20:43 -0500 |
commit | b54290e51accea4f696f5dacef8e609d0ccbe54a (patch) | |
tree | 3d35a3674cfc8613445b0cd71faebb3a68d3bd24 /arch/arm/mm/init.c | |
parent | c3146c43db4974f4571bd9d42b172ca03a9137c6 (diff) | |
download | linux-stable-b54290e51accea4f696f5dacef8e609d0ccbe54a.tar.gz linux-stable-b54290e51accea4f696f5dacef8e609d0ccbe54a.tar.bz2 linux-stable-b54290e51accea4f696f5dacef8e609d0ccbe54a.zip |
ARM: simplify and fix linker script for TCM
Let's put the TCM stuff in the __init section directly. No need for
a separately freed memory area.
Remove redundant linker sections, as well as comments that were more
confusing than no comments at all. Finally make it XIP compatible by
using LOAD_OFFSET in the section LMA specification.
Signed-off-by: Nicolas Pitre <nico@linaro.org>
Tested-by: Chris Brandt <Chris.Brandt@renesas.com>
Diffstat (limited to 'arch/arm/mm/init.c')
-rw-r--r-- | arch/arm/mm/init.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/arch/arm/mm/init.c b/arch/arm/mm/init.c index bd6f4513539a..c186474422f3 100644 --- a/arch/arm/mm/init.c +++ b/arch/arm/mm/init.c @@ -758,20 +758,9 @@ void set_kernel_text_ro(void) static inline void fix_kernmem_perms(void) { } #endif /* CONFIG_STRICT_KERNEL_RWX */ -void free_tcmmem(void) -{ -#ifdef CONFIG_HAVE_TCM - extern char __tcm_start, __tcm_end; - - poison_init_mem(&__tcm_start, &__tcm_end - &__tcm_start); - free_reserved_area(&__tcm_start, &__tcm_end, -1, "TCM link"); -#endif -} - void free_initmem(void) { fix_kernmem_perms(); - free_tcmmem(); poison_init_mem(__init_begin, __init_end - __init_begin); if (!machine_is_integrator() && !machine_is_cintegrator()) |