arm-trusted-firmware/plat/xilinx/zynqmp
Sandrine Bailleux 0af559a833 ARM platforms: Add support for SEPARATE_CODE_AND_RODATA
The arm_setup_page_tables() function used to expect a single set of
addresses defining the extents of the whole read-only section, code
and read-only data mixed up, which was mapped as executable.

This patch changes this behaviour. arm_setup_page_tables() now
expects 2 separate sets of addresses:

 - the extents of the code section;
 - the extents of the read-only data section.

The code is mapped as executable, whereas the data is mapped as
execute-never. New #defines have been introduced to identify the
extents of the code and the read-only data section. Given that
all BL images except BL1 share the same memory layout and linker
script structure, these #defines are common across these images.
The slight memory layout differences in BL1 have been handled by
providing values specific to BL1.

Note that this patch also affects the Xilinx platform port, which
uses the arm_setup_page_tables() function. It has been updated
accordingly, such that the memory mappings on this platform are
unchanged. This is achieved by passing null values as the extents
of the read-only data section so that it is ignored. As a result,
the whole read-only section is still mapped as executable.

Fixes ARM-software/tf-issues#85

Change-Id: I1f95865c53ce6e253a01286ff56e0aa1161abac5
2016-07-08 14:55:11 +01:00
..
aarch64 Merge pull request #650 from Xilinx/zynqmp-updates 2016-06-15 15:57:02 +01:00
include zynqmp: Reduce mapped memory area 2016-05-24 10:18:06 -07:00
pm_service Introduce utils.h header file 2016-07-08 14:37:11 +01:00
tsp ARM platforms: Add support for SEPARATE_CODE_AND_RODATA 2016-07-08 14:55:11 +01:00
bl31_zynqmp_setup.c ARM platforms: Add support for SEPARATE_CODE_AND_RODATA 2016-07-08 14:55:11 +01:00
plat_psci.c zynqmp: PSCI: Wait for FW completing wake requests 2016-05-25 10:47:03 -07:00
plat_startup.c zynqmp: Remove double ';' 2016-05-29 09:48:44 -07:00
plat_topology.c zynqmp: Remove unused/redundant #includes 2016-04-18 07:33:15 -07:00
plat_zynqmp.c Add support for Xilinx Zynq UltraScale+ MPSOC 2016-04-06 10:44:27 -07:00
platform.mk zynqmp: Add option to select between Cadence UARTs 2016-06-15 09:05:11 -07:00
sip_svc_setup.c Add support for Xilinx Zynq UltraScale+ MPSOC 2016-04-06 10:44:27 -07:00
zynqmp_def.h zynqmp: Add option to select between Cadence UARTs 2016-06-15 09:05:11 -07:00
zynqmp_private.h zynqmp: FSBL->ATF handover 2016-04-25 09:49:59 -07:00