WebOPTEE passes control back to this routine through a SMC. *****/ static int32_t opteed_init (void) {uint32_t linear_id = plat_my_core_pos (); optee_context_t * optee_ctx = & opteed_sp_context ; entry_point_info_t * optee_entry_point; uint64_t rc; /* * Get … Webopteed_smc_handler函数需要留意psci_register_spd_pm_hook (&opteed_pm),向PSCI注册了一个opteed_pm,在PSCI启动从核的时候会通过这个callback进入从核的OPTEE。 opteed_smc_handler调用了opteed_synchronous_sp_exit。 opteed_synchronous_sp_exit调用了opteed_exit_sp函数:
Subject Re: [PATCH v6] tee: optee: Add SMC for loading OP-TEE …
Weboptee_os/core/arch/arm/kernel/thread_optee_smc_a32.S Go to file Go to fileT Go to lineL Copy path Copy permalink This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository. Cannot retrieve contributors at this time 255 lines (232 sloc) 6.67 KB Raw Blame Edit this file E WebAfter calling smc call in linux/optee, trigger a synchronization exception, enter the smc_handler64 program, and then jump to the corresponding rt_svc The complete code and comments are as follows smc_handler64: /* NOTE: The code below must preserve x0-x4 */ /* * Save general purpose and ARMv8.3-PAuth registers (if enabled). burnley to scarborough
opteed_main.c - services/spd/opteed/opteed_main.c - Arm-trusted ...
WebMar 14, 2024 · IOW, if there is an OP-TEE. > > > SMC call invoked for a particular CPU then only you invoke. > > > opteed_cpu_on_finish_handler (0) once. This can be a bit unsafe as. > > > OP-TEE hasn't setup its context for those CPU which may involve some. > > > CPU … WebSMC是如何调用到opteed_smc_handler的 handle handler tee 1、在ree/tee中对smc的调用(以linux代码为例) SMCCC是一个宏,( \instr #0 )这一行其实就是( smc #0),就是smc调用 在调用smc之前,x0-x8值对应的分别是arm_smccc_smc (a0, a1, a2, a3, a4, a5, a6, a7, res)中的参数。 1 2 3 4 5 6 7 8 9 .macro SMCCC instr .cfi_startproc \instr #0 ldr x4, [sp] … WebFeb 19, 2015 · PSCI - developer’s view Linux Kernel EL1 ARM-TF smc interface psci service dispatcher platform code OP-TEE s-EL1 psci 1 2 opteed psci -{0.1, 0.2} -32/64 calls dtb ARM-TF uses the opteed vector table provided during OP-TEE initialization to be able to call the … burnley to sheffield distance