7 Star 0 Fork 14

src-openEuler/itrustee_sdk

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0006-support-register-shared-memory.patch 2.04 KB
一键复制 编辑 原始数据 按行查看 历史
zhengxiaoxiao 提交于 2024-08-13 20:23 . support register shared memory
From 42d3f421491f609ba369ffca685b384fd880229a Mon Sep 17 00:00:00 2001
From: zhengxiaoxiao <zhengxiaoxiao2@huawei.com>
Date: Tue, 13 Aug 2024 20:19:02 +0800
Subject: [PATCH] support register shared memory
---
include/CA/tee_client_constants.h | 2 ++
include/TA/tee_defines.h | 1 +
2 files changed, 3 insertions(+)
diff --git a/include/CA/tee_client_constants.h b/include/CA/tee_client_constants.h
index 896222d..2af3e75 100644
--- a/include/CA/tee_client_constants.h
+++ b/include/CA/tee_client_constants.h
@@ -75,6 +75,7 @@ enum TEEC_SharedMemCtl {
TEEC_MEM_OUTPUT = 0x2, /* output type of memory */
TEEC_MEM_INOUT = 0x3, /* memory is used as both input and output */
TEEC_MEM_SHARED_INOUT = 0x4, /* no copy shared memory */
+ TEEC_MEM_REGISTER_INOUT = 0x5, /* register shared memory */
};
enum TEEC_ParamType {
@@ -89,6 +90,7 @@ enum TEEC_ParamType {
TEEC_ION_INPUT = 0x08, /* input type of icon memory reference, refer TEEC_IonReference */
TEEC_ION_SGLIST_INPUT = 0x09, /* input type of ion memory block reference, refer TEEC_IonSglistReference */
TEEC_MEMREF_SHARED_INOUT = 0x0a, /* no copy mem */
+ TEEC_MEMREF_REGISTER_INOUT = 0x0b, /* register shared memory */
TEEC_MEMREF_WHOLE = 0xc, /* use whole memory block, refer TEEC_RegisteredMemoryReference */
TEEC_MEMREF_PARTIAL_INPUT = 0xd, /* input type of memory reference, refer TEEC_RegisteredMemoryReference */
TEEC_MEMREF_PARTIAL_OUTPUT = 0xe, /* output type of memory reference, refer TEEC_RegisteredMemoryReference */
diff --git a/include/TA/tee_defines.h b/include/TA/tee_defines.h
index 6b24ff2..d6cdc42 100755
--- a/include/TA/tee_defines.h
+++ b/include/TA/tee_defines.h
@@ -78,6 +78,7 @@ enum TEE_ParamType {
TEE_PARAM_TYPE_ION_INPUT = 0x8,
TEE_PARAM_TYPE_ION_SGLIST_INPUT = 0x9,
TEE_PARAM_TYPE_MEMREF_SHARED_INOUT = 0xa,
+ TEE_PARAM_TYPE_MEMREF_REGISTER_INOUT = 0xb,
TEE_PARAM_TYPE_RESMEM_INPUT = 0xc,
TEE_PARAM_TYPE_RESMEM_OUTPUT = 0xd,
TEE_PARAM_TYPE_RESMEM_INOUT = 0xe,
--
2.27.0
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/itrustee_sdk.git
git@gitee.com:src-openeuler/itrustee_sdk.git
src-openeuler
itrustee_sdk
itrustee_sdk
master

搜索帮助