diff options
author | Volodymyr Babchuk <vlad.babchuk@gmail.com> | 2018-02-06 19:35:07 +0200 |
---|---|---|
committer | Jérôme Forissier <jerome.forissier@linaro.org> | 2019-02-01 14:56:34 +0100 |
commit | 15216d4da08190b15d38303f12a42017fb46d551 (patch) | |
tree | 12f6102be4f5cde047ff169de4fcb1d86ef68a27 /mk | |
parent | acd819efdcc2d32884d223f00d8be4cebf797204 (diff) |
virt: add nexus memory area
This patch is the first in series of patches that split OP-TEE RW memory
into two regions: nexus memory and TEE memory. Nexus memory will
be always mapped and it will be used to store all data that is
vital for OP-TEE core and is not bound to virtual guests.
TEE memory is a memory that holds data specific for certain guest.
There will be TEE memory bank for every guest and it will be mapped
into OP-TEE address space only during call from that guest.
This patch adds nexus memory and moves stacks into it. Also
it provides __nex_bss and __nex_data macros, so one can easily set right
section for a variable.
Signed-off-by: Volodymyr Babchuk <vlad.babchuk@gmail.com>
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
Diffstat (limited to 'mk')
-rw-r--r-- | mk/config.mk | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/mk/config.mk b/mk/config.mk index 8766193f..24032736 100644 --- a/mk/config.mk +++ b/mk/config.mk @@ -404,3 +404,13 @@ CFG_TA_MBEDTLS_SELF_TEST ?= y # Enable TEE_ALG_RSASSA_PKCS1_V1_5 algorithm for signing with PKCS#1 v1.5 EMSA # # without ASN.1 around the hash. CFG_CRYPTO_RSASSA_NA1 ?= y + +# Enable virtualization support. OP-TEE will not work without compatible +# hypervisor if this option is enabled. +CFG_VIRTUALIZATION ?= n + +ifeq ($(CFG_VIRTUALIZATION),y) +$(call force,CFG_CORE_RODATA_NOEXEC,y) +$(call force,CFG_CORE_RWDATA_NOEXEC,y) +endif + |