mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-19 02:54:24 +00:00
Merge pull request #1443 from jeenu-arm/sdei-fixes
SDEI client EL determination fix
This commit is contained in:
commit
b70dcbc172
2 changed files with 3 additions and 3 deletions
|
@ -601,7 +601,7 @@ int sdei_dispatch_event(int ev_num)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static void end_sdei_explicit_dispatch(struct jmpbuf *buffer)
|
||||
static void end_sdei_synchronous_dispatch(struct jmpbuf *buffer)
|
||||
{
|
||||
longjmp(buffer);
|
||||
}
|
||||
|
@ -679,7 +679,7 @@ int sdei_event_complete(int resume, uint64_t pc)
|
|||
}
|
||||
|
||||
/* End the outstanding dispatch */
|
||||
end_sdei_explicit_dispatch(disp_ctx->dispatch_jmp);
|
||||
end_sdei_synchronous_dispatch(disp_ctx->dispatch_jmp);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -164,7 +164,7 @@ static inline unsigned int sdei_client_el(void)
|
|||
cpu_context_t *ns_ctx = cm_get_context(NON_SECURE);
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue