1 /* $NetBSD: __setjmp14.S,v 1.1 2006/07/07 21:07:35 ross Exp $ */
3 #include <sys/syscall.h>
5 #include <machine/asm.h>
9 .asciz "$NetBSD: __setjmp14.S,v 1.1 2006/07/07 21:07:35 ross 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