From 9bc8a11afeed3569736b89754012e3ca22ee10f6 Mon Sep 17 00:00:00 2001 From: pommicket Date: Sun, 20 Feb 2022 13:18:21 -0800 Subject: conclusion --- 05/musl-0.6.0/src/signal/i386/restore.s | 15 +++++++++++++++ 05/musl-0.6.0/src/signal/i386/sigsetjmp.s | 13 +++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 05/musl-0.6.0/src/signal/i386/restore.s create mode 100644 05/musl-0.6.0/src/signal/i386/sigsetjmp.s (limited to '05/musl-0.6.0/src/signal/i386') diff --git a/05/musl-0.6.0/src/signal/i386/restore.s b/05/musl-0.6.0/src/signal/i386/restore.s new file mode 100644 index 0000000..e0c4ab6 --- /dev/null +++ b/05/musl-0.6.0/src/signal/i386/restore.s @@ -0,0 +1,15 @@ +.global __restore +.type __restore,%function +__restore: + popl %eax + movl $119, %eax + int $0x80 +.size __restore,.-__restore + +.global __restore_rt +.type __restore_rt,%function +__restore_rt: + movl $173, %eax + int $0x80 +.size __restore_rt,.-__restore_rt + diff --git a/05/musl-0.6.0/src/signal/i386/sigsetjmp.s b/05/musl-0.6.0/src/signal/i386/sigsetjmp.s new file mode 100644 index 0000000..0e7eefb --- /dev/null +++ b/05/musl-0.6.0/src/signal/i386/sigsetjmp.s @@ -0,0 +1,13 @@ +.global sigsetjmp +sigsetjmp: + mov 4(%esp),%eax + mov 8(%esp),%ecx + mov %ecx,24(%eax) + jecxz 1f + add $28,%eax + push %eax + push $0 + push $2 + call sigprocmask + add $12,%esp +1: jmp setjmp -- cgit v1.2.3