diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2002-11-06 07:13:59 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2002-11-06 07:13:59 +0000 |
commit | 0a42b76c51050f92f4382bfeca7dc89f3588ce76 (patch) | |
tree | 87e4789eed7e0d91cf93b72e1e997a305804e40a | |
parent | c77b17a671b06db9efc98c6817ac8d53c3c4e3ab (diff) |
From NetBSD; Use _C_LABEL, not SYSNAME to call sigaltstack, sigblock,
sigreturn. sigblock has not been a syscall since 4.3BSD and using
SYSCALL directly seems like a bad idea in general.
Fixes a build problem on vax. OK miod@
-rw-r--r-- | lib/libc/arch/vax/gen/setjmp.S | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libc/arch/vax/gen/setjmp.S b/lib/libc/arch/vax/gen/setjmp.S index 40f342b5bdd..6ab7c794536 100644 --- a/lib/libc/arch/vax/gen/setjmp.S +++ b/lib/libc/arch/vax/gen/setjmp.S @@ -33,7 +33,7 @@ #if defined(LIBC_SCCS) .text - .asciz "$OpenBSD: setjmp.S,v 1.4 2001/08/23 21:58:41 miod Exp $" + .asciz "$OpenBSD: setjmp.S,v 1.5 2002/11/06 07:13:58 millert Exp $" #endif /* LIBC_SCCS */ /* @@ -54,10 +54,10 @@ ENTRY(setjmp, R6) subl2 $12,sp # space for current struct sigstack pushl sp # get current values pushl $0 # no new values - calls $4,SYSNAME(sigaltstack)# pop args plus signal stack value + calls $4,_C_LABEL(sigaltstack)# pop args plus signal stack value movl (sp)+,(r6)+ # save onsigstack status of caller pushl $0 - calls $1,SYSNAME(sigblock) # get signal mask + calls $1,_C_LABEL(sigblock) # get signal mask movl r0,(r6)+ # save signal mask of caller movl (ap),r0 moval 4(ap)[r0],(r6)+ # save sp of caller @@ -90,8 +90,8 @@ loop: done: pushl r1 # pointer to sigcontext - calls $1,SYSNAME(sigreturn) # restore previous context + calls $1,_C_LABEL(sigreturn) # restore previous context # we should never return botch: - calls $0,_longjmperror + calls $0,_C_LABEL(longjmperror) halt |