Unverified Commit b70dcbc1 authored by Dimitris Papastamos's avatar Dimitris Papastamos Committed by GitHub
Browse files

Merge pull request #1443 from jeenu-arm/sdei-fixes

SDEI client EL determination fix
parents d87abe6a 5e60c39a
...@@ -601,7 +601,7 @@ int sdei_dispatch_event(int ev_num) ...@@ -601,7 +601,7 @@ int sdei_dispatch_event(int ev_num)
return 0; return 0;
} }
static void end_sdei_explicit_dispatch(struct jmpbuf *buffer) static void end_sdei_synchronous_dispatch(struct jmpbuf *buffer)
{ {
longjmp(buffer); longjmp(buffer);
} }
...@@ -679,7 +679,7 @@ int sdei_event_complete(int resume, uint64_t pc) ...@@ -679,7 +679,7 @@ int sdei_event_complete(int resume, uint64_t pc)
} }
/* End the outstanding dispatch */ /* End the outstanding dispatch */
end_sdei_explicit_dispatch(disp_ctx->dispatch_jmp); end_sdei_synchronous_dispatch(disp_ctx->dispatch_jmp);
return 0; return 0;
} }
......
...@@ -164,7 +164,7 @@ static inline unsigned int sdei_client_el(void) ...@@ -164,7 +164,7 @@ static inline unsigned int sdei_client_el(void)
cpu_context_t *ns_ctx = cm_get_context(NON_SECURE); cpu_context_t *ns_ctx = cm_get_context(NON_SECURE);
el3_state_t *el3_ctx = get_el3state_ctx(ns_ctx); el3_state_t *el3_ctx = get_el3state_ctx(ns_ctx);
return read_ctx_reg(el3_ctx, CTX_SPSR_EL3) & SCR_HCE_BIT ? MODE_EL2 : return read_ctx_reg(el3_ctx, CTX_SCR_EL3) & SCR_HCE_BIT ? MODE_EL2 :
MODE_EL1; MODE_EL1;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment