commit | 665fa2567a65c746a26ff700f8d7d537a54eecf9 | [log] [tgz] |
---|---|---|
author | Jens Wiklander <jens.wiklander@linaro.org> | Wed Nov 20 17:33:04 2019 +0100 |
committer | Jérôme Forissier <jerome@forissier.org> | Fri Nov 22 13:52:44 2019 +0100 |
tree | 232e01856f29361096f0c9987f6354f1d5388ca2 | |
parent | f77987ae8c99f93a42f2085cf44c4a3116386b57 [diff] |
core: add plat_primary_init_early() Adds plat_primary_init_early() which replaces plat_cpu_reset_late(). plat_cpu_reset_late() was called for each cpu, but plat_primary_init_early() is only called on the primary cpu. In practice that's not a problem (except for plat-stm, more on that later) since all the platform specific plat_cpu_reset_late() only does something if get_core_pos() returns 0, that is on the primary cpu. On plat-stm SCR is now updated in plat_cpu_reset_early() instead. This patch is needed because ASLR may relocate OP-TEE to a virtual base address which differs from the physical base address. This means that it's not possible to execute C code before MMU has been enabled. Reviewed-by: Etienne Carriere <etienne.carriere@linaro.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