summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/h8300/setjmp.S
diff options
context:
space:
mode:
authorDavid McCullough <davidm@snapgear.com>2003-04-29 14:46:31 +0000
committerDavid McCullough <davidm@snapgear.com>2003-04-29 14:46:31 +0000
commitdd7edf2e66c25b0af951a0685e8a7f0f161dc564 (patch)
treec7ef88d3de494ec0ee1c975f696b17594f968d83 /libc/sysdeps/linux/h8300/setjmp.S
parent416799ee539e356c3a4bc86485ffb502077ef9fd (diff)
Some small fixups for the h8 support and add the h8s platform support.
Diffstat (limited to 'libc/sysdeps/linux/h8300/setjmp.S')
-rw-r--r--libc/sysdeps/linux/h8300/setjmp.S14
1 files changed, 10 insertions, 4 deletions
diff --git a/libc/sysdeps/linux/h8300/setjmp.S b/libc/sysdeps/linux/h8300/setjmp.S
index 97b91e204..53ecf3dbe 100644
--- a/libc/sysdeps/linux/h8300/setjmp.S
+++ b/libc/sysdeps/linux/h8300/setjmp.S
@@ -1,10 +1,16 @@
-.h8300h
-.text
+#ifdef __H8300S__
+ .h8300s
+#else
+ .h8300h
+#endif
+ .text
.global __setjmp
-.global _longjmp
+.global ___sigsetjmp
+.global ___longjmp
__setjmp:
+___sigsetjmp:
add.l #20,er0
mov.l er6,@er0
mov.l er5,@-er0
@@ -18,7 +24,7 @@ __setjmp:
sub.l er0,er0
rts
-_longjmp:
+___longjmp:
mov.l er1,er1
bne 1f
sub.l er1,er1