about summary refs log tree commit diff
path: root/src/setjmp/sh-nofpu/longjmp.s
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2014-02-27 23:18:42 -0500
committerRich Felker <dalias@aerifal.cx>2014-02-27 23:18:42 -0500
commitb1683a1d6a4391ffef6ce12be9aa172d0f4f59bc (patch)
tree52eb1e9245808f14580e892073856b78e606dc13 /src/setjmp/sh-nofpu/longjmp.s
parent5c27c4458f11adaba261353f84bcde4f79f0bdbd (diff)
downloadmusl-b1683a1d6a4391ffef6ce12be9aa172d0f4f59bc.tar.gz
musl-b1683a1d6a4391ffef6ce12be9aa172d0f4f59bc.tar.xz
musl-b1683a1d6a4391ffef6ce12be9aa172d0f4f59bc.zip
add nofpu subarchs to the sh arch, and properly detect compiler's fpu config
Diffstat (limited to 'src/setjmp/sh-nofpu/longjmp.s')
-rw-r--r--src/setjmp/sh-nofpu/longjmp.s22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/setjmp/sh-nofpu/longjmp.s b/src/setjmp/sh-nofpu/longjmp.s
new file mode 100644
index 00000000..cda482c5
--- /dev/null
+++ b/src/setjmp/sh-nofpu/longjmp.s
@@ -0,0 +1,22 @@
+.global _longjmp
+.global longjmp
+.type   _longjmp, @function
+.type   longjmp,  @function
+_longjmp:
+longjmp:
+	mov.l  @r4+, r8
+	mov.l  @r4+, r9
+	mov.l  @r4+, r10
+	mov.l  @r4+, r11
+	mov.l  @r4+, r12
+	mov.l  @r4+, r13
+	mov.l  @r4+, r14
+	mov.l  @r4+, r15
+	lds.l  @r4+, pr
+
+	tst  r5, r5
+	movt r0
+	add  r5, r0
+
+	rts
+	 nop