about summary refs log tree commit diff
path: root/src/setjmp/arm/longjmp.s
diff options
context:
space:
mode:
Diffstat (limited to 'src/setjmp/arm/longjmp.s')
-rw-r--r--src/setjmp/arm/longjmp.s15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/setjmp/arm/longjmp.s b/src/setjmp/arm/longjmp.s
new file mode 100644
index 00000000..037cb3d3
--- /dev/null
+++ b/src/setjmp/arm/longjmp.s
@@ -0,0 +1,15 @@
+.global _longjmp
+.global longjmp
+.type _longjmp,%function
+.type longjmp,%function
+_longjmp:
+longjmp:
+	mov ip,r0
+	movs r0,r1
+	moveq r0,#1
+	ldmia ip!, {v1,v2,v3,v4,v5,v6,sl,fp}
+	ldr sp,[ip],#4
+	ldr lr,[ip],#4
+	tst lr,#1
+	moveq pc,lr
+	bx lr