Skip to content

Commit

Permalink
core: arm: Remove duplicated sp assignment for ARM64 in set_ctx_regs()
Browse files Browse the repository at this point in the history
There are two lines of code to assign value of sp for ARM64. Remove one
of them.

Signed-off-by: Alvin Chang <alvinga@andestech.com>
Reviewed-by: Etienne Carriere <etienne.carriere@foss.st.com>
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
  • Loading branch information
gagachang authored and jforissier committed Sep 9, 2024
1 parent a420305 commit 74d6311
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion core/arch/arm/kernel/thread.c
Original file line number Diff line number Diff line change
Expand Up @@ -981,7 +981,6 @@ static void set_ctx_regs(struct thread_ctx_regs *regs, unsigned long a0,
regs->x[1] = a1;
regs->x[2] = a2;
regs->x[3] = a3;
regs->sp = user_sp;
regs->pc = entry_func;
regs->cpsr = spsr;
regs->x[13] = user_sp; /* Used when running TA in Aarch32 */
Expand Down

0 comments on commit 74d6311

Please sign in to comment.