diff options
author | Sathees Balya <sathees.balya@arm.com> | 2018-11-15 14:22:30 +0000 |
---|---|---|
committer | Sathees Balya <sathees.balya@arm.com> | 2019-01-23 16:01:19 +0000 |
commit | 5b8d50e40701ebb6a7ba548ccaa96ba879587fb9 (patch) | |
tree | a286d0657cb05879b66a6d35ff91ca160c1fc61f /include/common | |
parent | a0d894397d5729aa72840dc49120f4d198174e22 (diff) |
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>
Diffstat (limited to 'include/common')
-rw-r--r-- | include/common/desc_image_load.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/common/desc_image_load.h b/include/common/desc_image_load.h index f2f26ea9..e46eb279 100644 --- a/include/common/desc_image_load.h +++ b/include/common/desc_image_load.h @@ -31,6 +31,9 @@ extern unsigned int bl_mem_params_desc_num; /* BL image loading utility functions */ void flush_bl_params_desc(void); +void flush_bl_params_desc_args(bl_mem_params_node_t *mem_params_desc_ptr, + unsigned int mem_params_desc_num, + bl_params_t *next_bl_params_ptr); int get_bl_params_node_index(unsigned int image_id); bl_mem_params_node_t *get_bl_mem_params_node(unsigned int image_id); bl_load_info_t *get_bl_load_info_from_mem_params_desc(void); |