SPM: Move S-EL1/S-EL0 xlat tables to TZC DRAM
authorAntonio Nino Diaz <antonio.ninodiaz@arm.com>
Fri, 17 Nov 2017 11:48:55 +0000 (11:48 +0000)
committerAntonio Nino Diaz <antonio.ninodiaz@arm.com>
Wed, 6 Dec 2017 14:12:41 +0000 (14:12 +0000)
commit45d640f0f449e835b014bb5555ec1de5b5e566dc
tree4323241396d3ad43e1ef20d76e34e3887e2ea7cb
parenta852ec46055977c2cd811d5b54eb3044858fe2ee
SPM: Move S-EL1/S-EL0 xlat tables to TZC DRAM

A new platform define, `PLAT_SP_IMAGE_XLAT_SECTION_NAME`, has been
introduced to select the section where the translation tables used by
the S-EL1/S-EL0 are placed.

This define has been used to move the translation tables to DRAM secured
by TrustZone.

Most of the extra needed space in BL31 when SPM is enabled is due to the
large size of the translation tables. By moving them to this memory
region we can save 44 KiB.

A new argument has been added to REGISTER_XLAT_CONTEXT2() to specify the
region where the translation tables have to be placed by the linker.

Change-Id: Ia81709b4227cb8c92601f0caf258f624c0467719
Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
include/lib/xlat_tables/xlat_tables_v2.h
include/lib/xlat_tables/xlat_tables_v2_helpers.h
include/plat/arm/board/common/board_arm_def.h
include/plat/arm/common/arm_spm_def.h
services/std_svc/spm/secure_partition_setup.c