diff --git a/arch/arm/src/arm/arm_saveusercontext.S b/arch/arm/src/arm/arm_saveusercontext.S index f61ee79b80..2a210e560a 100644 --- a/arch/arm/src/arm/arm_saveusercontext.S +++ b/arch/arm/src/arm/arm_saveusercontext.S @@ -58,7 +58,8 @@ up_saveusercontext: /* Save r0~r14, store the return address as PC */ - stmia r0!, {r0-r14, r14} + stmia r0!, {r0-r14} + str r14, [r0], #4 /* Save cpsr */