commit | c98d80112d6d52b3a8b2ab403232b5265c13046b | [log] [tgz] |
---|---|---|
author | Yu-Chien Peter Lin <peter.lin@sifive.com> | Sat Mar 15 06:42:10 2025 -0700 |
committer | Jerome Forissier <jerome@forissier.org> | Wed Jun 18 09:36:09 2025 +0200 |
tree | 9e3545d185878063c0aefa31c0b0d1ee4c8aa11c | |
parent | ca71b6fa3fb3feb0282b04f91b27eab518118ac8 [diff] |
core: riscv: refactor MMU enablement code Replace the set_satp macro with a proper enable_mmu function to handle the transition to randomized virtual addresses. The function executes from the identity mapped section to maintain execution continuity during the VA->PA transition. It adjusts the stack pointer, global pointer, thread pointer and ra register with the ASLR offset. The console is reinitialized after ASLR mapping is active since the registered addresses need to be updated. Signed-off-by: Yu-Chien Peter Lin <peter.lin@sifive.com> Co-developed-by: Alvin Chang <alvinga@andestech.com> Signed-off-by: Alvin Chang <alvinga@andestech.com>
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