aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Dykes <mardyk01@review.trustedfirmware.org>2020-07-02 14:53:20 +0000
committerTrustedFirmware Code Review <review@review.trustedfirmware.org>2020-07-02 14:53:20 +0000
commitfd7c7978cfee3138a645a2014b02562f94aef141 (patch)
tree7a920da8b19af364185346d79ad1ce05834a0c3b
parentda6ac4e88966d81ec8bef22714ac1c0e787f176a (diff)
parentdf954c91755578994be898e718cfe32f84b94498 (diff)
downloadtf-a-tests-fd7c7978cfee3138a645a2014b02562f94aef141.tar.gz
Merge "TFTF: Fix regions' mapping with no NS bit set"
-rw-r--r--plat/common/plat_common.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/plat/common/plat_common.c b/plat/common/plat_common.c
index b6cfec3..c43ae12 100644
--- a/plat/common/plat_common.c
+++ b/plat/common/plat_common.c
@@ -88,15 +88,15 @@ void tftf_plat_configure_mmu(void)
{
/* Code */
mmap_add_region(IMAGE_TEXT_BASE, IMAGE_TEXT_BASE,
- IMAGE_TEXT_END - IMAGE_TEXT_BASE, MT_CODE);
+ IMAGE_TEXT_END - IMAGE_TEXT_BASE, MT_CODE | MT_NS);
/* RO data */
mmap_add_region(IMAGE_RODATA_BASE, IMAGE_RODATA_BASE,
- IMAGE_RODATA_END - IMAGE_RODATA_BASE, MT_RO_DATA);
+ IMAGE_RODATA_END - IMAGE_RODATA_BASE, MT_RO_DATA | MT_NS);
/* Data + BSS */
mmap_add_region(IMAGE_RW_BASE, IMAGE_RW_BASE,
- IMAGE_RW_END - IMAGE_RW_BASE, MT_RW_DATA);
+ IMAGE_RW_END - IMAGE_RW_BASE, MT_RW_DATA | MT_NS);
#if IMAGE_TFTF
mmap_add_region(COHERENT_RAM_START, COHERENT_RAM_START,