Lines Matching defs:tlk_ctx
83 tlk_context_t *tlk_ctx)
88 assert(tlk_ctx);
93 tlk_ctx->mpidr = read_mpidr_el1();
94 clr_yield_smc_active_flag(tlk_ctx->state);
95 cm_set_context(&tlk_ctx->cpu_ctx, SECURE);
117 * 1. Applies the S-EL1 system register context from tlk_ctx->cpu_ctx.
121 * from the tlk_ctx->cpu_ctx are used to enter the secure payload image.
123 uint64_t tlkd_synchronous_sp_entry(tlk_context_t *tlk_ctx)
128 assert(tlk_ctx);
131 assert(cm_get_context(SECURE) == &tlk_ctx->cpu_ctx);
135 rc = tlkd_enter_sp(&tlk_ctx->c_rt_ctx);
137 tlk_ctx->c_rt_ctx = 0;
145 * 1. Saves the S-EL1 system register context to tlk_ctx->cpu_ctx.
151 void tlkd_synchronous_sp_exit(tlk_context_t *tlk_ctx, uint64_t ret)
154 assert(tlk_ctx);
157 assert(cm_get_context(SECURE) == &tlk_ctx->cpu_ctx);
160 assert(tlk_ctx->c_rt_ctx != 0);
161 tlkd_exit_sp(tlk_ctx->c_rt_ctx, ret);