summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/sh/bsd-setjmp.S
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-11-04 20:19:07 +0000
committerEric Andersen <andersen@codepoet.org>2002-11-04 20:19:07 +0000
commit578a13e90fe4ca11ee9bc4e484c20248badb1b32 (patch)
treec1ef0b14a3fa88268d63e48e3f514d843956891c /libc/sysdeps/linux/sh/bsd-setjmp.S
parent72029cf39b801314ff1cf562b9b0521439063bff (diff)
Kill sysdep.h and fixup the SH asm to not use it.
-Erik
Diffstat (limited to 'libc/sysdeps/linux/sh/bsd-setjmp.S')
-rw-r--r--libc/sysdeps/linux/sh/bsd-setjmp.S10
1 files changed, 7 insertions, 3 deletions
diff --git a/libc/sysdeps/linux/sh/bsd-setjmp.S b/libc/sysdeps/linux/sh/bsd-setjmp.S
index ea47caa6c..72ab83a85 100644
--- a/libc/sysdeps/linux/sh/bsd-setjmp.S
+++ b/libc/sysdeps/linux/sh/bsd-setjmp.S
@@ -21,13 +21,17 @@
We cannot do it in C because it must be a tail-call, so frame-unwinding
in setjmp doesn't clobber the state restored by longjmp. */
-#include <sysdep.h>
-ENTRY (setjmp)
+.text
+.align 5
+.type setjmp,@function
+.globl setjmp;
+setjmp:
mov.l 1f, r1
jmp @r1
mov #1, r0
.align 2
1:
.long __sigsetjmp
-END (setjmp)
+.size setjmp,.-setjmp;
+