Lines Matching defs:ctx
44 * The following function initializes the cpu_context 'ctx' for
58 void cm_setup_context(cpu_context_t *ctx, const entry_point_info_t *ep)
64 assert(ctx != NULL);
69 zeromem(ctx, sizeof(*ctx));
71 reg_ctx = get_regs_ctx(ctx);
168 cpu_context_t *ctx;
169 ctx = cm_get_context_by_index(cpu_idx, GET_SECURITY_STATE(ep->h.attr));
170 cm_setup_context(ctx, ep);
180 cpu_context_t *ctx;
181 ctx = cm_get_context(GET_SECURITY_STATE(ep->h.attr));
182 cm_setup_context(ctx, ep);
196 cpu_context_t *ctx = cm_get_context(security_state);
199 assert(ctx != NULL);
202 scr = read_ctx_reg(get_regs_ctx(ctx), CTX_SCR);
205 hsctlr = read_ctx_reg(get_regs_ctx(ctx),