aboutsummaryrefslogtreecommitdiff
path: root/core/arch/arm/mm/core_mmu_v7.c
diff options
context:
space:
mode:
authorJens Wiklander <jens.wiklander@linaro.org>2016-05-02 22:38:15 +0200
committerJens Wiklander <jens.wiklander@linaro.org>2016-06-15 11:10:13 +0200
commit1e00aeb97ffad15f176ee55a6128d6f87a462074 (patch)
tree5bdcb77182d86495b50a42b7f7b1c44bd7ba9d2c /core/arch/arm/mm/core_mmu_v7.c
parentda234e62641689f8b0c0750f3e404620c08a8407 (diff)
core: non-linear mapping of secure world devices
This patch introduces non-linear mapping of secure world devices, that is, physical and virtual address of a device can differ. Reviewed-by: Joakim Bech <joakim.bech@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
Diffstat (limited to 'core/arch/arm/mm/core_mmu_v7.c')
-rw-r--r--core/arch/arm/mm/core_mmu_v7.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/arch/arm/mm/core_mmu_v7.c b/core/arch/arm/mm/core_mmu_v7.c
index 29d79a59..2d1781dd 100644
--- a/core/arch/arm/mm/core_mmu_v7.c
+++ b/core/arch/arm/mm/core_mmu_v7.c
@@ -649,6 +649,11 @@ void core_init_mmu_tables(struct tee_mmap_region *mm)
map_memarea(mm + n, ttb1);
}
+bool core_mmu_place_tee_ram_at_top(paddr_t paddr)
+{
+ return paddr > 0x80000000;
+}
+
void core_init_mmu_regs(void)
{
uint32_t prrr;