On 08/24/2018 11:21 AM, Sumit Garg wrote:
Add following APIs to communicate with OP-TEE static TA:
"static TAs" are now preferably called "pseudo TAs" [1], but it seems this API could be used to invoke "early TAs" as well. Or any kind of Trusted Application as long as the non-secure infrastructure is available (OP-TEE kernel driver and tee-supplicant daemon).
[1] https://github.com/OP-TEE/optee_os/blob/3.2.0/documentation/optee_design.md#...
- OpteeInit
- OpteeOpenSession
- OpteeCloseSession
- OpteeInvokeFunc
Cc: Ard Biesheuvel ard.biesheuvel@linaro.org Cc: Leif Lindholm leif.lindholm@linaro.org Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Sumit Garg sumit.garg@linaro.org
ArmPkg/Include/Library/OpteeLib.h | 102 ++++++ ArmPkg/Library/OpteeLib/Optee.c | 358 +++++++++++++++++++++ ArmPkg/Library/OpteeLib/OpteeLib.inf | 2 + ArmPkg/Library/OpteeLib/OpteeSmc.h | 43 +++ .../Include/IndustryStandard/GlobalPlatform.h | 60 ++-- 5 files changed, 531 insertions(+), 34 deletions(-) create mode 100644 ArmPkg/Library/OpteeLib/OpteeSmc.h copy ArmPkg/Include/Library/OpteeLib.h => MdePkg/Include/IndustryStandard/GlobalPlatform.h (53%)
[...]