1 /* $NetBSD: __setjmp14.S,v 1.2 2009/03/08 18:57:12 he Exp $ */
3 #include <sys/syscall.h>
5 #include <machine/asm.h>
9 .asciz "$NetBSD: __setjmp14.S,v 1.2 2009/03/08 18:57:12 he Exp $"
13 * C library -- _setjmp, _longjmp
16 * will generate a "return(v?v:1)" from the last call to
18 * by restoring registers from the stack.
19 * The previous signal state is restored.
26 addi %r5,%r6,100 # &sigmask
27 li %r0,SYS___sigprocmask14
28 sc # assume no error XXX
34 std %r8,8(%r6) # save r8-r31
63 ld %r8,8(%r6) # load r8-r31
93 addi %r4,%r3,100 # &sigmask
94 li %r3,3 # SIG_SETMASK
96 li %r0,SYS___sigprocmask14
97 sc # assume no error XXX