commit | 5eb31236d167efa9c984ee87540fb55068206980 | [log] [tgz] |
---|---|---|
author | Alvin Chang <alvinga@andestech.com> | Sun May 18 01:24:18 2025 +0800 |
committer | Jerome Forissier <jerome@forissier.org> | Thu May 22 07:44:03 2025 +0200 |
tree | 8b832e21af1f0ac113d5f9074523d2fcdb895e8b | |
parent | e1482ae792fc2b153404069a78fdf7ccaf81da58 [diff] |
riscv: mm: Fix VA base for canonical addresses RISC-V defines the following virtual address rules: - For Sv39 (39-bit VA), bits 63–39 all equal to bit 38 of VA - For Sv48 (48-bit VA), bits 63–48 all equal to bit 47 of VA - For Sv57 (57-bit VA), bits 63–57 all equal to bit 56 of VA In other words, the most-significant bits of VA base must be all one if the highest SvXX address bit of VA is one. Signed-off-by: Alvin Chang <alvinga@andestech.com> Reviewed-by: Yu-Chien Peter Lin <peter.lin@sifive.com> Acked-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