1/* $NetBSD: __sigsetjmp14.S,v 1.2 2010/03/22 01:39:11 mrg Exp $ */ 2 3#include <sys/syscall.h> 4#include <machine/asm.h> 5 6#if defined(LIBC_SCCS) 7 .text 8 .asciz "$NetBSD: __sigsetjmp14.S,v 1.2 2010/03/22 01:39:11 mrg Exp $" 9#endif 10 11ENTRY(__sigsetjmp14) 12 mr %r6,%r3 13 or. %r7,%r4,%r4 14 beq 1f 15 li %r3,1 # SIG_BLOCK 16 li %r4,0 17 addi %r5,%r6,100 # &sigmask 18 li %r0,SYS___sigprocmask14 19 sc # assume no error XXX 201: 21 mflr %r11 22 mfcr %r12 23 mr %r10,%r1 24 mr %r9,%r2 25 i = 0 26 .rept 32-7 27 std 7+i,i*8(%r6) # save r7-r31 28 i = i + 1 29 .endr 30 li %r3,0 31 blr 32 33ENTRY(__siglongjmp14) 34 i = 0 35 .rept 32-7 36 ld 7+i,i*8(%r3) # load r7-r31 37 i = i + 1 38 .endr 39 mr %r6,%r4 40 mtlr %r11 41 mtcr %r12 42 mr %r2,%r9 43 mr %r1,%r10 44 or. %r7,%r7,%r7 45 beq 1f 46 addi %r4,%r3,100 # &sigmask 47 li %r3,3 # SIG_SETMASK 48 li %r5,0 49 li %r0,SYS___sigprocmask14 50 sc # assume no error XXX 511: 52 or. %r3,%r6,%r6 53 bnelr 54 li %r3,1 55 blr 56