type
status
date
slug
summary
tags
category
icon
password
The code is based on: https://gitlab.com/riseproject/riscv-optee/optee_os/-/tree/dev-optee-mpxy
Commit ID:
75df9ba41a404aec897399ead0ff0aebcbff48ca
thread_rpc_cmd()
- Call
thread_rpc()
withrpc_args
(rv[THREAD_RPC_NUM_ARGS]
).rpc_args
’s first element is set toOPTEE_ABI_RETURN_RPC_CMD
function.
thread_rpc()
- Call
__thread_rpc()
__thread_rpc()
- Call
xstatus_for_xret()
to getxstatus
withxstatus.PIE
set to0
,xstatus.PP
set toS-mode
. - The returned
xstatus
is passed to thread_rpc_xstatus(). - Call thread_rpc_xstatus().