commit | ed5c32949f311ee34283b302e97bea3def0979f4 | [log] [tgz] |
---|---|---|
author | Yu-Chien Peter Lin <peter.lin@sifive.com> | Sun May 25 22:43:35 2025 -0700 |
committer | Jerome Forissier <jerome@forissier.org> | Wed Jun 18 09:36:09 2025 +0200 |
tree | 68c4f98460f9fa93ca5674a49a724cb13e111dfc | |
parent | b988773a2686fd9df67960b511f5777f4d30b18a [diff] |
core: riscv: implement ASLR base address calculation Implement arch_aslr_base_addr() for RISC-V to compute the ASLR base address using the provided seed. The implementation maps addresses across the full virtual address space: - When MSB of new based address is set, the address is mapped to the upper half by extending MSB to 64-bit - Otherwise, it's mapped to the lower half This approach utilizes the entire available virtual address space for ASLR (e.g. 512 GiB for Sv39). Signed-off-by: Yu-Chien Peter Lin <peter.lin@sifive.com> Reviewed-by: Alvin Chang <alvinga@andestech.com> Reviewed-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