1 /* $NetBSD: compat___setjmp14.S,v 1.1 2006/02/18 00:21:28 matt Exp $ */
3 #include <sys/syscall.h>
5 #include <machine/asm.h>
9 .asciz "$NetBSD: compat___setjmp14.S,v 1.1 2006/02/18 00:21:28 matt 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
33 stmw %r8,4(%r6) # save r8-r31
38 lmw %r8,4(%r3) # load r8-r31
44 addi %r4,%r3,100 # &sigmask
45 li %r3,3 # SIG_SETMASK
47 li %r0,SYS___sigprocmask14
48 sc # assume no error XXX