Lines Matching defs:ep

49 static void setup_el1_context(cpu_context_t *ctx, const struct entry_point_info *ep)
64 sctlr_elx = (EP_GET_EE(ep->h.attr) != 0U) ? SCTLR_EE_BIT : 0UL;
65 if (GET_RW(ep->spsr) == MODE_RW_64) {
110 static void setup_secure_context(cpu_context_t *ctx, const struct entry_point_info *ep)
150 setup_el1_context(ctx, ep);
173 static void setup_realm_context(cpu_context_t *ctx, const struct entry_point_info *ep)
196 static void setup_ns_context(cpu_context_t *ctx, const struct entry_point_info *ep)
266 setup_el1_context(ctx, ep);
275 u_register_t sctlr_el2 = (EP_GET_EE(ep->h.attr) != 0U) ? SCTLR_EE_BIT : 0UL;
319 static void setup_context_common(cpu_context_t *ctx, const entry_point_info_t *ep)
372 if (GET_RW(ep->spsr) == MODE_RW_64) {
383 if (EP_GET_ST(ep->h.attr) != 0U) {
424 if (is_feat_tcr2_supported() && (GET_RW(ep->spsr) == MODE_RW_64)) {
439 if ((is_feat_gcs_supported()) && (GET_RW(ep->spsr) == MODE_RW_64)) {
454 if (((GET_RW(ep->spsr) == MODE_RW_64) && (GET_EL(ep->spsr) == MODE_EL2))
455 || ((GET_RW(ep->spsr) != MODE_RW_64)
456 && (GET_M32(ep->spsr) == MODE32_hyp))) {
496 write_ctx_reg(state, CTX_ELR_EL3, ep->pc);
497 write_ctx_reg(state, CTX_SPSR_EL3, ep->spsr);
504 memcpy(gp_regs, (void *)&ep->args, sizeof(aapcs64_params_t));
531 * and initializations specific to the security state specified in 'ep'
533 void cm_setup_context(cpu_context_t *ctx, const entry_point_info_t *ep)
543 setup_context_common(ctx, ep);
545 security_state = GET_SECURITY_STATE(ep->h.attr);
550 setup_secure_context(ctx, ep);
554 setup_realm_context(ctx, ep);
558 setup_ns_context(ctx, ep);
794 const entry_point_info_t *ep)
797 ctx = cm_get_context_by_index(cpu_idx, GET_SECURITY_STATE(ep->h.attr));
798 cm_setup_context(ctx, ep);
806 void cm_init_my_context(const entry_point_info_t *ep)
809 ctx = cm_get_context(GET_SECURITY_STATE(ep->h.attr));
810 cm_setup_context(ctx, ep);