diff options
author | Bobby Bingham <koorogi@koorogi.info> | 2013-10-05 05:13:18 -0500 |
---|---|---|
committer | Bobby Bingham <koorogi@koorogi.info> | 2014-02-23 16:15:54 -0600 |
commit | 3a3c813e08d808224c12fd0e9104aeff7c45c9a7 (patch) | |
tree | 508b28c42438615d711afcb9b44d7b0e0842f28d /src/setjmp | |
parent | d05aaedaabd4f5472c233dbbd1ff4bb9c9c99794 (diff) | |
download | musl-3a3c813e08d808224c12fd0e9104aeff7c45c9a7.tar.gz musl-3a3c813e08d808224c12fd0e9104aeff7c45c9a7.tar.xz musl-3a3c813e08d808224c12fd0e9104aeff7c45c9a7.zip |
superh port
Diffstat (limited to 'src/setjmp')
-rw-r--r-- | src/setjmp/superh/longjmp.s | 26 | ||||
-rw-r--r-- | src/setjmp/superh/setjmp.s | 25 |
2 files changed, 51 insertions, 0 deletions
diff --git a/src/setjmp/superh/longjmp.s b/src/setjmp/superh/longjmp.s new file mode 100644 index 00000000..e9aa4e50 --- /dev/null +++ b/src/setjmp/superh/longjmp.s @@ -0,0 +1,26 @@ +.global _longjmp +.global longjmp +.type _longjmp, @function +.type longjmp, @function +_longjmp: +longjmp: + mov.l @r4+, r8 + mov.l @r4+, r9 + mov.l @r4+, r10 + mov.l @r4+, r11 + mov.l @r4+, r12 + mov.l @r4+, r13 + mov.l @r4+, r14 + mov.l @r4+, r15 + lds.l @r4+, pr + fmov.s @r4+, fr12 + fmov.s @r4+, fr13 + fmov.s @r4+, fr14 + fmov.s @r4+, fr15 + + tst r5, r5 + movt r0 + add r5, r0 + + rts + nop diff --git a/src/setjmp/superh/setjmp.s b/src/setjmp/superh/setjmp.s new file mode 100644 index 00000000..6127ed90 --- /dev/null +++ b/src/setjmp/superh/setjmp.s @@ -0,0 +1,25 @@ +.global __setjmp +.global _setjmp +.global setjmp +.type __setjmp, @function +.type _setjmp, @function +.type setjmp, @function +__setjmp: +_setjmp: +setjmp: + add #52, r4 + fmov.s fr15, @-r4 + fmov.s fr14, @-r4 + fmov.s fr13, @-r4 + fmov.s fr12, @-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 |