diff options
author | Rich Felker <dalias@aerifal.cx> | 2014-02-27 23:18:42 -0500 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2014-02-27 23:18:42 -0500 |
commit | b1683a1d6a4391ffef6ce12be9aa172d0f4f59bc (patch) | |
tree | 52eb1e9245808f14580e892073856b78e606dc13 /src/setjmp/sh-nofpu/setjmp.s | |
parent | 5c27c4458f11adaba261353f84bcde4f79f0bdbd (diff) | |
download | musl-b1683a1d6a4391ffef6ce12be9aa172d0f4f59bc.tar.gz musl-b1683a1d6a4391ffef6ce12be9aa172d0f4f59bc.tar.bz2 musl-b1683a1d6a4391ffef6ce12be9aa172d0f4f59bc.tar.xz musl-b1683a1d6a4391ffef6ce12be9aa172d0f4f59bc.zip |
add nofpu subarchs to the sh arch, and properly detect compiler's fpu config
Diffstat (limited to 'src/setjmp/sh-nofpu/setjmp.s')
-rw-r--r-- | src/setjmp/sh-nofpu/setjmp.s | 21 |
1 files changed, 21 insertions, 0 deletions
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 |