diff options
Diffstat (limited to 'libc-top-half/musl/src/signal/x86_64/sigsetjmp.s')
-rw-r--r-- | libc-top-half/musl/src/signal/x86_64/sigsetjmp.s | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/libc-top-half/musl/src/signal/x86_64/sigsetjmp.s b/libc-top-half/musl/src/signal/x86_64/sigsetjmp.s new file mode 100644 index 0000000..9a7695f --- /dev/null +++ b/libc-top-half/musl/src/signal/x86_64/sigsetjmp.s @@ -0,0 +1,24 @@ +.global sigsetjmp +.global __sigsetjmp +.type sigsetjmp,@function +.type __sigsetjmp,@function +sigsetjmp: +__sigsetjmp: + test %esi,%esi + jz 1f + + popq 64(%rdi) + mov %rbx,72+8(%rdi) + mov %rdi,%rbx + + call setjmp@PLT + + pushq 64(%rbx) + mov %rbx,%rdi + mov %eax,%esi + mov 72+8(%rbx),%rbx + +.hidden __sigsetjmp_tail + jmp __sigsetjmp_tail + +1: jmp setjmp@PLT |