From cb4adb0d8c36e6650b8b74d27e8c7417067e8cd5 Mon Sep 17 00:00:00 2001 From: Daniel Boulby Date: Tue, 18 Sep 2018 11:52:49 +0100 Subject: FVP: Reclaim init code for the stack Map the initialization code for BL31 to overlap with the memory required for the secondary cores stack. Once BL31 has been initialized the memory can be remapped to RW data so that it can be used for secondary cores stacks. By moving code from .text to .text.init the size of the BL31 image is decreased by a page. Split arm_common.ld.S into two linker scripts, one for tzc_dram (arm_tzc_dram.ld.S) and one for reclaiming initialization code (arm_reclaim_init.ld.S) so that platforms can chose which memory regions they wish to include. Change-Id: I648e88f3eda1aa71765744cf34343ecda9320b32 Signed-off-by: Daniel Boulby --- plat/arm/common/arm_common.c | 1 + 1 file changed, 1 insertion(+) (limited to 'plat/arm/common/arm_common.c') diff --git a/plat/arm/common/arm_common.c b/plat/arm/common/arm_common.c index ae06ef28..a21d189e 100644 --- a/plat/arm/common/arm_common.c +++ b/plat/arm/common/arm_common.c @@ -38,6 +38,7 @@ void arm_setup_romlib(void) * as an array specifying the generic memory regions which can be; * - Code section; * - Read-only data section; + * - Init code section, if applicable * - Coherent memory region, if applicable. */ -- cgit v1.2.3