summaryrefslogtreecommitdiff
path: root/arch/arm/lib/call_with_stack.S
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/lib/call_with_stack.S')
-rw-r--r--arch/arm/lib/call_with_stack.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/lib/call_with_stack.S b/arch/arm/lib/call_with_stack.S
index 916c80f13ae7..ed1a421813cb 100644
--- a/arch/arm/lib/call_with_stack.S
+++ b/arch/arm/lib/call_with_stack.S
@@ -36,9 +36,9 @@ ENTRY(call_with_stack)
mov r0, r1
adr lr, BSYM(1f)
- mov pc, r2
+ ret r2
1: ldr lr, [sp]
ldr sp, [sp, #4]
- mov pc, lr
+ ret lr
ENDPROC(call_with_stack)