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
entry_open_session()
- Open the session based on the UUID.
tee_ta_open_session()
tee_ta_open_session()
tee_ta_init_session()
- Call
ts_ctx->ops->enter_open_session()
callback, - For pseudo TAs, the callback is:
pseudo_ta_enter_open_session()
- For user TAs, the callback is
user_ta_enter_open_session()
tee_ta_init_session()
- Look for already loaded TA
tee_ta_init_session_with_context()
- If the TA for this UUID is not loaded yet:
- Look for secure partition
stmm_init_session()
- Look for pseudo TA
- Look for user TA
tee_ta_init_user_ta_session()
- If
tee_ta_init_user_ta_session()
returnsTEE_SUCCESS
, calltee_ta_complete_user_ta_session()
entry_invoke_command()
- Call
tee_ta_get_session()
to get the opened session fromarg->session
. - Call
tee_ta_invoke_command()
on the opened session. - Call
ts_ctx->ops->enter_invoke_cmd()
: - For pseudo TAs, the callback is:
pseudo_ta_enter_invoke_cmd()
- For user TAs, the call back is:
user_ta_enter_invoke_cmd()