diff options
author | Antonio Nino Diaz <antonio.ninodiaz@arm.com> | 2018-05-24 09:14:58 +0100 |
---|---|---|
committer | Antonio Nino Diaz <antonio.ninodiaz@arm.com> | 2018-05-24 09:15:03 +0100 |
commit | e829a3796fb2e66a68b60a22ebce6dca05c80a71 (patch) | |
tree | 722d54c6fd84e8740623b5fd3db68640fff4cb2f /plat | |
parent | b62507ac8446cca101e3a04cc790899eae2c5156 (diff) | |
download | platform_external_arm-trusted-firmware-e829a3796fb2e66a68b60a22ebce6dca05c80a71.tar.gz platform_external_arm-trusted-firmware-e829a3796fb2e66a68b60a22ebce6dca05c80a71.tar.bz2 platform_external_arm-trusted-firmware-e829a3796fb2e66a68b60a22ebce6dca05c80a71.zip |
plat/arm: SPM: Force BL31 to DRAM when SPM is used
BL31 is running out of space, and the use-case of SPM doesn't require it
to be in SRAM. To prevent BL31 from running out of space in the future,
move BL31 to DRAM if SPM is enabled.
Secure Partition Manager design document updated to reflect the changes.
Increased the size of the stack of BL31 for builds with SPM.
The translation tables used by SPM in Arm platforms have been moved back
to the 'xlat_tables' region instead of 'arm_el3_tzc_dram'. Everything is
in DRAM now, so it doesn't make sense to treat them in a different way.
Change-Id: Ia6136c8e108b8da9edd90e9d72763dada5e5e5dc
Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
Diffstat (limited to 'plat')
-rw-r--r-- | plat/arm/board/fvp/platform.mk | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/plat/arm/board/fvp/platform.mk b/plat/arm/board/fvp/platform.mk index bb7753822..2abd9e966 100644 --- a/plat/arm/board/fvp/platform.mk +++ b/plat/arm/board/fvp/platform.mk @@ -206,5 +206,11 @@ ifneq (${BL2_AT_EL3}, 0) override BL1_SOURCES = endif +ifeq (${ENABLE_SPM},1) +ifneq (${ARM_BL31_IN_DRAM},1) + $(error "Error: SPM needs BL31 to be located in DRAM.") +endif +endif + include plat/arm/board/common/board_common.mk include plat/arm/common/arm_common.mk |