OP-TEE / optee_os

Trusted side of the TEE
Other
1.59k stars 1.07k forks source link

core: arm: Remove duplicated sp assignment for ARM64 in set_ctx_regs() #7032

Closed gagachang closed 2 months ago

gagachang commented 2 months ago

There are two lines of code to assign value of sp for ARM64. Remove one of them.

-   regs->sp = user_sp;
    regs->pc = entry_func;
    regs->cpsr = spsr;
    regs->x[13] = user_sp;  /* Used when running TA in Aarch32 */
    regs->sp = user_sp; /* Used when running TA in Aarch64 */
jenswi-linaro commented 2 months ago

Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>

gagachang commented 2 months ago

Tags applied. Thanks!