commit | 4518cdc1ff64614942239f40568baa603fb1d101 | [log] [tgz] |
---|---|---|
author | Jens Wiklander <jens.wiklander@linaro.org> | Tue Jan 14 19:41:55 2020 +0100 |
committer | Jérôme Forissier <jerome@forissier.org> | Thu Jan 16 12:49:10 2020 +0100 |
tree | 56c65eb00caa332ea6d69de498cc4dbcfba03f21 | |
parent | 67283c2753f42e049c32c116d34666adf9d9e3fd [diff] |
core: arm64: introduce CFG_CORE_ARM64_PA_BITS Introduces CFG_CORE_ARM64_PA_BITS which replaces the max_pa global variable which was used to configure TCR_EL1.IPS. Prior to 520860f ("core: generic_entry: add enable_mmu()") TCR_EL1.IPS was calculated and even updated later in the boot flow to automatically cover the needed physical address space. But now it's calculated before MMU is enabled and once MMU it's kept in read only memory. With CFG_CORE_ARM64_PA_BITS TCR_EL1.IPS can be determined early and later it is enough to check that physical addresses to be mapped are covered by CFG_CORE_ARM64_PA_BITS. Fixes: 520860f658be ("core: generic_entry: add enable_mmu()") Acked-by: Jerome Forissier <jerome@forissier.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
This git contains source code for the secure side implementation of OP-TEE project.
All official OP-TEE documentation has moved to http://optee.readthedocs.io.
// OP-TEE core maintainers