diff options
Diffstat (limited to 'libc-top-half/musl/src/signal/m68k/sigsetjmp.s')
-rw-r--r-- | libc-top-half/musl/src/signal/m68k/sigsetjmp.s | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/libc-top-half/musl/src/signal/m68k/sigsetjmp.s b/libc-top-half/musl/src/signal/m68k/sigsetjmp.s new file mode 100644 index 0000000..09bfa64 --- /dev/null +++ b/libc-top-half/musl/src/signal/m68k/sigsetjmp.s @@ -0,0 +1,29 @@ +.global sigsetjmp +.global __sigsetjmp +.type sigsetjmp,@function +.type __sigsetjmp,@function +sigsetjmp: +__sigsetjmp: + move.l 8(%sp),%d0 + beq 1f + + movea.l 4(%sp),%a1 + move.l (%sp)+,156(%a1) + move.l %a2,156+4+8(%a1) + movea.l %a1,%a2 + +.hidden ___setjmp + lea ___setjmp-.-8,%a1 + jsr (%pc,%a1) + + move.l 156(%a2),-(%sp) + move.l %a2,4(%sp) + move.l %d0,8(%sp) + movea.l 156+4+8(%a2),%a2 + +.hidden __sigsetjmp_tail + lea __sigsetjmp_tail-.-8,%a1 + jmp (%pc,%a1) + +1: lea ___setjmp-.-8,%a1 + jmp (%pc,%a1) |