summaryrefslogtreecommitdiff
path: root/plat/qemu/include
diff options
context:
space:
mode:
authorJens Wiklander <jens.wiklander@linaro.org>2017-08-24 13:16:26 +0200
committerJens Wiklander <jens.wiklander@linaro.org>2017-08-24 16:00:20 +0200
commite2af1cadf7cbbb04caa74bbbb0e61578bc446a3a (patch)
tree267fb61658e24afe3e9ec615e18a41309e708c2f /plat/qemu/include
parent19911aa6feda9f10998de44d8853ecd28417f45d (diff)
qemu: Add OP-TEE extra image parsing support
OP-TEE may have extra images to be loaded. Load them one by one and do the parsing. In this patch, ARM TF need to load up to 3 images for OP-TEE: header, pager and pages images. Header image is the info about optee os and images. Pager image include pager code and data. Paged image include the paging parts using virtual memory. Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
Diffstat (limited to 'plat/qemu/include')
-rw-r--r--plat/qemu/include/platform_def.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/plat/qemu/include/platform_def.h b/plat/qemu/include/platform_def.h
index 85374e8d..e91a7db9 100644
--- a/plat/qemu/include/platform_def.h
+++ b/plat/qemu/include/platform_def.h
@@ -73,6 +73,11 @@
#define SEC_DRAM_BASE 0x0e100000
#define SEC_DRAM_SIZE 0x00f00000
+/* Load pageable part of OP-TEE at end of secure DRAM */
+#define QEMU_OPTEE_PAGEABLE_LOAD_BASE (SEC_DRAM_BASE + SEC_DRAM_SIZE - \
+ QEMU_OPTEE_PAGEABLE_LOAD_SIZE)
+#define QEMU_OPTEE_PAGEABLE_LOAD_SIZE 0x00400000
+
/*
* ARM-TF lives in SRAM, partition it here
*/