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:
75df9ba41a404aec897399ead0ff0aebcbff48caTEEC_InitializeContext()teec_open_dev()- Open
/dev/teeXdevice.
TEEC_OpenSession()- Call
ioctl()withTEE_IOC_OPEN_SESSIONcommand. - This will eventually trap to Linux Kernel’s
tee_ioctl().
TEEC_InvokeCommand()- Call
ioctl()withTEE_IOC_INVOKEcommand. The command ID for TA is passed througharg->func.
TEEC_CloseSession()- Call
ioctl()withTEE_IOC_CLOSE_SESSIONcommand.
TEEC_FinalizeContext()- Close
/dev/teeXdevice.