This patch imports the unmodified current version of NetBSD libc. The NetBSD includes are in /nbsd_include, while the libc code itself is split between lib/nbsd_libc and common/lib/libc.
46 lines
813 B
ArmAsm
46 lines
813 B
ArmAsm
/* $NetBSD: __sigsetjmp14.S,v 1.5 2011/01/15 07:31:12 matt Exp $ */
|
|
|
|
#include "SYS.h"
|
|
#include "assym.h"
|
|
|
|
#if defined(LIBC_SCCS)
|
|
__RCSID("$NetBSD: __sigsetjmp14.S,v 1.5 2011/01/15 07:31:12 matt Exp $")
|
|
#endif
|
|
|
|
ENTRY(__sigsetjmp14)
|
|
mr %r6,%r3
|
|
or. %r7,%r4,%r4
|
|
beq 1f
|
|
li %r3,SIG_BLOCK
|
|
li %r4,0
|
|
addi %r5,%r6,4*(1+24) # &sigmask
|
|
_DOSYSCALL(__sigprocmask14) # assume no error XXX
|
|
1:
|
|
mflr %r11
|
|
mfcr %r12
|
|
mr %r10,%r1
|
|
mr %r9,%r2
|
|
stmw %r7,0(%r6) # save r7-r31
|
|
li %r3,0
|
|
blr
|
|
END(__sigsetjmp14)
|
|
|
|
ENTRY(__siglongjmp14)
|
|
lmw %r7,0(%r3) # load r7-r31
|
|
mr %r6,%r4
|
|
mtlr %r11
|
|
mtcr %r12
|
|
mr %r2,%r9
|
|
mr %r1,%r10
|
|
or. %r7,%r7,%r7
|
|
beq 1f
|
|
addi %r4,%r3,4*(1+24) # &sigmask
|
|
li %r3,SIG_SETMASK
|
|
li %r5,0
|
|
_DOSYSCALL(__sigprocmask14) # assume no error XXX
|
|
1:
|
|
or. %r3,%r6,%r6
|
|
bnelr
|
|
li %r3,1
|
|
blr
|
|
END(__siglongjmp14)
|