summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/h8300/bsd-_setjmp.S
diff options
context:
space:
mode:
authorYoshinori Sato <ysato@users.sourceforge.jp>2015-05-24 02:06:24 +0900
committerWaldemar Brodkorb <wbx@openadk.org>2015-06-10 10:19:39 -0500
commite364302aeaa7fc4f18c66acdbba5dd2c14f77555 (patch)
tree51042019ec3b837fb953730c688f902b921780b0 /libc/sysdeps/linux/h8300/bsd-_setjmp.S
parente9fd792344b30b370346d0224d54edb6a96d5cff (diff)
h8300: Assembly functions
- remove symbol prefix - new startup - new clone syscall support Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'libc/sysdeps/linux/h8300/bsd-_setjmp.S')
-rw-r--r--libc/sysdeps/linux/h8300/bsd-_setjmp.S10
1 files changed, 6 insertions, 4 deletions
diff --git a/libc/sysdeps/linux/h8300/bsd-_setjmp.S b/libc/sysdeps/linux/h8300/bsd-_setjmp.S
index fbe702599..766d9cc91 100644
--- a/libc/sysdeps/linux/h8300/bsd-_setjmp.S
+++ b/libc/sysdeps/linux/h8300/bsd-_setjmp.S
@@ -1,4 +1,4 @@
-/* BSD `_setjmp' entry point to `sigsetjmp (..., 0)'. H8/300 version. */
+/* BSD `_setjmp' entry point to `sigsetjmp (..., 0)'. H8/300 version. */
#include <jmpbuf-offsets.h>
@@ -8,10 +8,10 @@
.h8300h
#endif
.text
-
-.global __setjmp
-__setjmp:
+.global _setjmp
+
+_setjmp:
add.l #JB_SIZE,er0
mov.l @sp,er1 ; return PC
mov.l er1,@-er0
@@ -23,3 +23,5 @@ __setjmp:
sub.l er0,er0
mov.l er0,@(JB_SIZE:16,er1)
rts
+
+ .end