aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSandrine Bailleux <sandrine.bailleux@arm.com>2014-05-27 13:03:54 +0100
committerSandrine Bailleux <sandrine.bailleux@arm.com>2014-06-05 17:39:40 +0100
commit0babea93d314159314c7d7094436b436d3261f2d (patch)
treeb5743e329cfd61d3872328612f80eb213ecc7c06
parent6825c0585f171677d3484f2e6d9e432ee77e76b8 (diff)
downloadarm-trusted-firmware-0babea93d314159314c7d7094436b436d3261f2d.tar.gz
juno: Limit BL3-1 read/write access to SRAM
At present BL3-1 has access to all of the SRAM, including regions that are mapped as read-only and non-cacheable by other firmware images. This patch restricts BL3-1 to only be able to read/write from memory used for its own data sections Change-Id: I32126adaa93d8e42f4cea5a8f676b3efe3eb04f6
-rw-r--r--plat/juno/bl31_plat_setup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plat/juno/bl31_plat_setup.c b/plat/juno/bl31_plat_setup.c
index 5edc6af..b16ef05 100644
--- a/plat/juno/bl31_plat_setup.c
+++ b/plat/juno/bl31_plat_setup.c
@@ -138,8 +138,8 @@ void bl31_platform_setup(void)
******************************************************************************/
void bl31_plat_arch_setup()
{
- configure_mmu_el3(TZRAM_BASE,
- TZRAM_SIZE,
+ configure_mmu_el3(BL31_RO_BASE,
+ BL31_COHERENT_RAM_LIMIT - BL31_RO_BASE,
BL31_RO_BASE,
BL31_RO_LIMIT,
BL31_COHERENT_RAM_BASE,