summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/sh/bsd-_setjmp.S
diff options
context:
space:
mode:
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 32b642558..8b5fc8a2d 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 #0, r0
.align 2
1:
.long __sigsetjmp
-END (_setjmp)
+.size _setjmp,.-_setjmp;
+