Lines Matching defs:pnc_ctx
26 pnc_context_t *pnc_ctx)
31 assert(pnc_ctx);
36 pnc_ctx->mpidr = read_mpidr();
38 cm_set_context(&pnc_ctx->cpu_ctx, SECURE);
56 * 1. Applies the S-EL1 system register context from pnc_ctx->cpu_ctx.
60 * from the pnc_ctx->cpu_ctx are used to enter the secure payload image.
62 uint64_t pncd_synchronous_sp_entry(pnc_context_t *pnc_ctx)
64 assert(pnc_ctx != NULL);
65 assert(pnc_ctx->c_rt_ctx == 0U);
68 assert(cm_get_context(SECURE) == &pnc_ctx->cpu_ctx);
75 return pncd_enter_sp(&pnc_ctx->c_rt_ctx);
81 * 1. Saves the S-EL1 system register context tp pnc_ctx->cpu_ctx.
87 void pncd_synchronous_sp_exit(pnc_context_t *pnc_ctx, uint64_t ret)
89 assert(pnc_ctx != NULL);
91 assert(cm_get_context(SECURE) == &pnc_ctx->cpu_ctx);
97 assert(pnc_ctx->c_rt_ctx != 0);
98 pncd_exit_sp(pnc_ctx->c_rt_ctx, ret);