Skip to content

Commit 89674e7

Browse files
author
Chris von Recklinghausen
committed
optee: isolate smc abi
Bugzilla: https://bugzilla.redhat.com/2166659 commit c51a564 Author: Jens Wiklander <jens.wiklander@linaro.org> Date: Wed Jul 21 16:30:28 2021 +0200 optee: isolate smc abi Isolate the ABI based on raw SMCs. Code specific to the raw SMC ABI is moved into smc_abi.c. This makes room for other ABIs with a clear separation. The driver changes to use module_init()/module_exit() instead of module_platform_driver(). The platform_driver_register() and platform_driver_unregister() functions called directly to keep the same behavior. This is needed because module_platform_driver() is based on module_driver() which can only be used once in a module. A function optee_rpc_cmd() is factored out from the function handle_rpc_func_cmd() to handle the ABI independent part of RPC processing. This patch is not supposed to change the driver behavior, it's only a matter of reorganizing the code. Reviewed-by: Sumit Garg <sumit.garg@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Chris von Recklinghausen <crecklin@redhat.com>
1 parent 6d95e30 commit 89674e7

File tree

8 files changed

+1506
-1388
lines changed

8 files changed

+1506
-1388
lines changed

drivers/tee/optee/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ optee-objs += core.o
44
optee-objs += call.o
55
optee-objs += rpc.o
66
optee-objs += supp.o
7-
optee-objs += shm_pool.o
87
optee-objs += device.o
8+
optee-objs += smc_abi.o
99

1010
# for tracing framework to find optee_trace.h
11-
CFLAGS_call.o := -I$(src)
11+
CFLAGS_smc_abi.o := -I$(src)

0 commit comments

Comments
 (0)