Searched hist:"0 fb22936229d51e005aaf159e628e516a60faaa5" (Results 1 – 3 of 3) sorted by relevance
| /optee_os/core/arch/riscv/kernel/ |
| H A D | thread_optee_abi_rv.S | 0fb22936229d51e005aaf159e628e516a60faaa5 Wed Oct 11 02:13:27 UTC 2023 Alvin Chang <alvinga@andestech.com> core: riscv: Implement SBI based protocol
Rename thread_return_from_nsec_call() to thread_return_to_ree() for more general behavior, since TEE might not only be called by REE, but also do something on its own initiative (e.g., handle secure interrupts).
This commit also implements SBI based protocol used to return control to REE. The register a7 encodes SBI TEE extension ID, which is temporarily defined here. We may have ratified SBI TEE extension in the future and we can apply ratified ID at that time. The register a6 is unused and encoded as 0. The returned arguments are encoded into registers a0~a5 and should be provided by the caller.
Signed-off-by: Alvin Chang <alvinga@andestech.com> Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
|
| /optee_os/core/arch/riscv/include/ |
| H A D | sbi.h | 0fb22936229d51e005aaf159e628e516a60faaa5 Wed Oct 11 02:13:27 UTC 2023 Alvin Chang <alvinga@andestech.com> core: riscv: Implement SBI based protocol
Rename thread_return_from_nsec_call() to thread_return_to_ree() for more general behavior, since TEE might not only be called by REE, but also do something on its own initiative (e.g., handle secure interrupts).
This commit also implements SBI based protocol used to return control to REE. The register a7 encodes SBI TEE extension ID, which is temporarily defined here. We may have ratified SBI TEE extension in the future and we can apply ratified ID at that time. The register a6 is unused and encoded as 0. The returned arguments are encoded into registers a0~a5 and should be provided by the caller.
Signed-off-by: Alvin Chang <alvinga@andestech.com> Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
|
| /optee_os/core/arch/riscv/include/kernel/ |
| H A D | thread_private_arch.h | 0fb22936229d51e005aaf159e628e516a60faaa5 Wed Oct 11 02:13:27 UTC 2023 Alvin Chang <alvinga@andestech.com> core: riscv: Implement SBI based protocol
Rename thread_return_from_nsec_call() to thread_return_to_ree() for more general behavior, since TEE might not only be called by REE, but also do something on its own initiative (e.g., handle secure interrupts).
This commit also implements SBI based protocol used to return control to REE. The register a7 encodes SBI TEE extension ID, which is temporarily defined here. We may have ratified SBI TEE extension in the future and we can apply ratified ID at that time. The register a6 is unused and encoded as 0. The returned arguments are encoded into registers a0~a5 and should be provided by the caller.
Signed-off-by: Alvin Chang <alvinga@andestech.com> Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
|