Allow for the fact that NetBSD syscalls are no longer the default. Call

sigaltstack by default if using FreeBSD syscalls.
This commit is contained in:
John Birrell 1998-08-08 02:20:24 +00:00
parent 920ee4896e
commit dc43d96540
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=38180

View File

@ -68,7 +68,11 @@ LEAF(setjmp, 1)
lda sp, -24(sp) /* sizeof struct sigaltstack */
mov zero, a0
mov sp, a1
#ifdef __NETBSD_SYSCALLS
CALL(__sigaltstack14)
#else
CALL(sigaltstack)
#endif
ldl t0, 16(sp) /* offset of ss_flags */
lda sp, 24(sp) /* sizeof struct sigaltstack */
ldq ra, ((26 + 4) * 8)(s0) /* restore return address */