Skip to content

Commit c51a564

Browse files
committed
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 <[email protected]> Signed-off-by: Jens Wiklander <[email protected]>
1 parent 4602c58 commit c51a564

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)