ARM platforms: Demonstrate mem_protect from el3_runtime
Previously mem_protect used to be only supported from BL2. This is not
helpful in the case when ARM TF-A BL2 is not used. This patch demonstrates
mem_protect from el3_runtime firmware on ARM Platforms specifically
when RESET_TO_BL31 or RESET_TO_SP_MIN flag is set as BL2 may be absent
in these cases. The Non secure DRAM is dynamically mapped into EL3 mmap
tables temporarily and then the protected regions are then cleared. This
avoids the need to map the non secure DRAM permanently to BL31/sp_min.

The stack size is also increased, because DYNAMIC_XLAT_TABLES require
a bigger stack.

Change-Id: Ia44c594192ed5c5adc596c0cff2c7cc18c001fde
Signed-off-by: Roberto Vargas <roberto.vargas@arm.com>
1 parent a8d9550 commit 638b034cc34ecdc54b9c790d5192229a027c8156
@Roberto Vargas Roberto Vargas authored on 5 Jan 2018
Showing 14 changed files
View
include/lib/utils.h
View
include/plat/arm/board/common/board_arm_def.h
View
include/plat/arm/common/plat_arm.h
View
include/plat/arm/css/common/css_def.h
View
lib/utils/mem_region.c
View
plat/arm/board/common/board_css_common.c
View
plat/arm/board/fvp/fvp_pm.c
View
plat/arm/board/fvp/include/platform_def.h
View
plat/arm/board/juno/include/platform_def.h
View
plat/arm/common/arm_bl2_setup.c
View
plat/arm/common/arm_bl31_setup.c
View
plat/arm/common/arm_nor_psci_mem_protect.c
View
plat/arm/common/sp_min/arm_sp_min_setup.c
View
plat/arm/css/common/css_pm.c