@@ -312,7 +312,7 @@
mov r0, r0 @ ARMv5T and earlier require a nop
@ after ldm {}^
add sp, sp, #\offset + PT_REGS_SIZE
- movs pc, lr @ return & move spsr_svc into cpsr
+ subs pc, lr, #0 @ return & move spsr_svc into cpsr
#elif defined(CONFIG_CPU_V7M)
@ V7M restore.
@ Note that we don't need to do clrex here as clearing the local
@@ -339,7 +339,7 @@
ldmdb sp, {r0 - r12} @ get calling r0 - r12
.endif
add sp, sp, #PT_REGS_SIZE - S_SP
- movs pc, lr @ return & move spsr_svc into cpsr
+ subs pc, lr, #0 @ return & move spsr_svc into cpsr
#endif /* !CONFIG_THUMB2_KERNEL */
.endm