plat/arm: Save BL2 descriptors to reserved memory.
authorSathees Balya <sathees.balya@arm.com>
Thu, 15 Nov 2018 14:22:30 +0000 (14:22 +0000)
committerSathees Balya <sathees.balya@arm.com>
Wed, 23 Jan 2019 16:01:19 +0000 (16:01 +0000)
commit5b8d50e40701ebb6a7ba548ccaa96ba879587fb9
treea286d0657cb05879b66a6d35ff91ca160c1fc61f
parenta0d894397d5729aa72840dc49120f4d198174e22
plat/arm: Save BL2 descriptors to reserved memory.

On ARM platforms, the BL2 memory can be overlaid by BL31/BL32. The memory
descriptors describing the list of executable images are created in BL2
R/W memory, which could be possibly corrupted later on by BL31/BL32 due
to overlay. This patch creates a reserved location in SRAM for these
descriptors and are copied over by BL2 before handing over to next BL
image.

Also this patch increases the PLAT_ARM_MAX_BL2_SIZE for juno when TBBR
is enabled.

Fixes ARM-Software/tf-issues#626

Change-Id: I755735706fa702024b4032f51ed4895b3687377f
Signed-off-by: Sathees Balya <sathees.balya@arm.com>
common/desc_image_load.c
docs/firmware-design.rst
include/common/desc_image_load.h
include/plat/arm/common/arm_def.h
include/plat/arm/common/plat_arm.h
plat/arm/board/juno/include/platform_def.h
plat/arm/common/arm_image_load.c
plat/arm/css/sgi/sgi_image_load.c