about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/fenv/sh-nofpu/fenv.sub1
-rw-r--r--src/fenv/sheb-nofpu/fenv.sub1
-rw-r--r--src/setjmp/sh-nofpu/longjmp.s22
-rw-r--r--src/setjmp/sh-nofpu/longjmp.sub1
-rw-r--r--src/setjmp/sh-nofpu/setjmp.s21
-rw-r--r--src/setjmp/sh-nofpu/setjmp.sub1
-rw-r--r--src/setjmp/sheb-nofpu/longjmp.sub1
-rw-r--r--src/setjmp/sheb-nofpu/setjmp.sub1
8 files changed, 49 insertions, 0 deletions
diff --git a/src/fenv/sh-nofpu/fenv.sub b/src/fenv/sh-nofpu/fenv.sub
new file mode 100644
index 00000000..9cafca5e
--- /dev/null
+++ b/src/fenv/sh-nofpu/fenv.sub
@@ -0,0 +1 @@
+../fenv.c
diff --git a/src/fenv/sheb-nofpu/fenv.sub b/src/fenv/sheb-nofpu/fenv.sub
new file mode 100644
index 00000000..9cafca5e
--- /dev/null
+++ b/src/fenv/sheb-nofpu/fenv.sub
@@ -0,0 +1 @@
+../fenv.c
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
diff --git a/src/setjmp/sh-nofpu/longjmp.sub b/src/setjmp/sh-nofpu/longjmp.sub
new file mode 100644
index 00000000..e80331b6
--- /dev/null
+++ b/src/setjmp/sh-nofpu/longjmp.sub
@@ -0,0 +1 @@
+longjmp.s
diff --git a/src/setjmp/sh-nofpu/setjmp.s b/src/setjmp/sh-nofpu/setjmp.s
new file mode 100644
index 00000000..c6c7359a
--- /dev/null
+++ b/src/setjmp/sh-nofpu/setjmp.s
@@ -0,0 +1,21 @@
+.global __setjmp
+.global _setjmp
+.global setjmp
+.type   __setjmp, @function
+.type   _setjmp,  @function
+.type   setjmp,   @function
+__setjmp:
+_setjmp:
+setjmp:
+	add   #36, r4
+	sts.l  pr,   @-r4
+	mov.l  r15   @-r4
+	mov.l  r14,  @-r4
+	mov.l  r13,  @-r4
+	mov.l  r12,  @-r4
+	mov.l  r11,  @-r4
+	mov.l  r10,  @-r4
+	mov.l  r9,   @-r4
+	mov.l  r8,   @-r4
+	rts
+	 mov  #0, r0
diff --git a/src/setjmp/sh-nofpu/setjmp.sub b/src/setjmp/sh-nofpu/setjmp.sub
new file mode 100644
index 00000000..b7ad2210
--- /dev/null
+++ b/src/setjmp/sh-nofpu/setjmp.sub
@@ -0,0 +1 @@
+setjmp.s
diff --git a/src/setjmp/sheb-nofpu/longjmp.sub b/src/setjmp/sheb-nofpu/longjmp.sub
new file mode 100644
index 00000000..62fcd2b1
--- /dev/null
+++ b/src/setjmp/sheb-nofpu/longjmp.sub
@@ -0,0 +1 @@
+../sh-nofpu/longjmp.s
diff --git a/src/setjmp/sheb-nofpu/setjmp.sub b/src/setjmp/sheb-nofpu/setjmp.sub
new file mode 100644
index 00000000..a5bb294c
--- /dev/null
+++ b/src/setjmp/sheb-nofpu/setjmp.sub
@@ -0,0 +1 @@
+../sh-nofpu/setjmp.s