Home
last modified time | relevance | path

Searched hist:dd24684e6599ba3bdc32fbab70085aa391d24909 (Results 1 – 1 of 1) sorted by relevance

/optee_os/core/arch/arm/sm/
H A Dsm_a32.Sdd24684e6599ba3bdc32fbab70085aa391d24909 Mon Aug 13 13:40:07 UTC 2018 Jens Wiklander <jens.wiklander@linaro.org> core: arm: sm: fix FIQ from normal world

When compiled with "CFG_SM_NO_CYCLE_COUNTING=y" sm_save_unbanked_regs()
doesn't return with r0 pointing to ctx->nsec.r8 even if that's assumed
in sm_fiq_entry(). Fixes this by calculating the pointer based on sp
instead or relying on a certain value in r0.

Fixes: 8267e19bbcce ("core: arm: sm: initialize PMCR.DP to 1 and save/restore PMCR")
Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>