summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-01-05 16:18:39 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-01-05 16:18:39 +0000
commit965838951ec63319efe3d6acd3340bd8e44de631 (patch)
tree6dbdd602ebc67aca4d54f0965f5eba949d5ab1e2
parent74d260749ea58c587f154bf4c0ffa1cfbac01cc9 (diff)
ss_sp is correct, ss_base is not. noticed by agc@sde.uts.amdahl.com; netbsd pr#1784
-rw-r--r--sys/arch/alpha/alpha/machdep.c4
-rw-r--r--sys/arch/amiga/amiga/machdep.c2
-rw-r--r--sys/arch/atari/atari/machdep.c4
-rw-r--r--sys/arch/hp300/hp300/machdep.c4
-rw-r--r--sys/arch/i386/i386/freebsd_machdep.c4
-rw-r--r--sys/arch/i386/i386/linux_machdep.c4
-rw-r--r--sys/arch/i386/i386/machdep.c4
-rw-r--r--sys/arch/i386/i386/svr4_machdep.c4
-rw-r--r--sys/arch/m68k/m68k/sunos_machdep.c5
-rw-r--r--sys/arch/mac68k/mac68k/machdep.c2
-rw-r--r--sys/arch/mvme68k/mvme68k/machdep.c4
-rw-r--r--sys/arch/mvme88k/mvme88k/machdep.c2
-rw-r--r--sys/arch/pc532/pc532/machdep.c4
-rw-r--r--sys/arch/pica/pica/machdep.c4
-rw-r--r--sys/arch/pmax/pmax/machdep.c4
-rw-r--r--sys/arch/sparc/sparc/machdep.c2
-rw-r--r--sys/arch/sparc/sparc/svr4_machdep.c4
-rw-r--r--sys/arch/sun3/sun3/machdep.c4
-rw-r--r--sys/arch/vax/vax/machdep.c4
-rw-r--r--sys/compat/common/kern_sig_43.c6
-rw-r--r--sys/compat/osf1/osf1_signal.c4
-rw-r--r--sys/compat/svr4/svr4_signal.c6
-rw-r--r--sys/kern/kern_sig.c4
-rw-r--r--sys/sys/signal.h4
24 files changed, 46 insertions, 47 deletions
diff --git a/sys/arch/alpha/alpha/machdep.c b/sys/arch/alpha/alpha/machdep.c
index d87cd3bcb16..1959c82755c 100644
--- a/sys/arch/alpha/alpha/machdep.c
+++ b/sys/arch/alpha/alpha/machdep.c
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.13 1995/12/20 00:19:49 cgd Exp $ */
+/* $NetBSD: machdep.c,v 1.14 1996/01/04 22:21:33 jtc Exp $ */
/*
* Copyright (c) 1994, 1995 Carnegie-Mellon University.
@@ -1039,7 +1039,7 @@ sendsig(catcher, sig, mask, code)
*/
if ((psp->ps_flags & SAS_ALTSTACK) && !oonstack &&
(psp->ps_sigonstack & sigmask(sig))) {
- scp = (struct sigcontext *)(psp->ps_sigstk.ss_base +
+ scp = (struct sigcontext *)(psp->ps_sigstk.ss_sp +
psp->ps_sigstk.ss_size - rndfsize);
psp->ps_sigstk.ss_flags |= SS_ONSTACK;
} else
diff --git a/sys/arch/amiga/amiga/machdep.c b/sys/arch/amiga/amiga/machdep.c
index 9df950ecd35..41fa2c1c656 100644
--- a/sys/arch/amiga/amiga/machdep.c
+++ b/sys/arch/amiga/amiga/machdep.c
@@ -579,7 +579,7 @@ sendsig(catcher, sig, mask, code)
*/
if ((psp->ps_flags & SAS_ALTSTACK) && oonstack == 0 &&
(psp->ps_sigonstack & sigmask(sig))) {
- fp = (struct sigframe *)(psp->ps_sigstk.ss_base +
+ fp = (struct sigframe *)(psp->ps_sigstk.ss_sp +
psp->ps_sigstk.ss_size - sizeof(struct sigframe));
psp->ps_sigstk.ss_flags |= SS_ONSTACK;
} else
diff --git a/sys/arch/atari/atari/machdep.c b/sys/arch/atari/atari/machdep.c
index 31bc8d3a6ed..375429a11a7 100644
--- a/sys/arch/atari/atari/machdep.c
+++ b/sys/arch/atari/atari/machdep.c
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.17 1995/12/25 14:09:13 leo Exp $ */
+/* $NetBSD: machdep.c,v 1.18 1996/01/04 22:21:47 jtc Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -510,7 +510,7 @@ sendsig(catcher, sig, mask, code)
*/
if ((psp->ps_flags & SAS_ALTSTACK) && oonstack == 0 &&
(psp->ps_sigonstack & sigmask(sig))) {
- fp = (struct sigframe *)(psp->ps_sigstk.ss_base +
+ fp = (struct sigframe *)(psp->ps_sigstk.ss_sp +
psp->ps_sigstk.ss_size - sizeof(struct sigframe));
psp->ps_sigstk.ss_flags |= SS_ONSTACK;
} else
diff --git a/sys/arch/hp300/hp300/machdep.c b/sys/arch/hp300/hp300/machdep.c
index 719b271f633..bd0aa9fbec8 100644
--- a/sys/arch/hp300/hp300/machdep.c
+++ b/sys/arch/hp300/hp300/machdep.c
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.54 1995/11/20 00:58:54 thorpej Exp $ */
+/* $NetBSD: machdep.c,v 1.55 1996/01/04 22:21:51 jtc Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -773,7 +773,7 @@ sendsig(catcher, sig, mask, code)
fsize = sizeof(struct sigframe);
if ((psp->ps_flags & SAS_ALTSTACK) && !oonstack &&
(psp->ps_sigonstack & sigmask(sig))) {
- fp = (struct sigframe *)(psp->ps_sigstk.ss_base +
+ fp = (struct sigframe *)(psp->ps_sigstk.ss_sp +
psp->ps_sigstk.ss_size - fsize);
psp->ps_sigstk.ss_flags |= SS_ONSTACK;
} else
diff --git a/sys/arch/i386/i386/freebsd_machdep.c b/sys/arch/i386/i386/freebsd_machdep.c
index dd0743c3c1b..48632236899 100644
--- a/sys/arch/i386/i386/freebsd_machdep.c
+++ b/sys/arch/i386/i386/freebsd_machdep.c
@@ -1,4 +1,4 @@
-/* $NetBSD: freebsd_machdep.c,v 1.4 1995/10/10 04:54:18 mycroft Exp $ */
+/* $NetBSD: freebsd_machdep.c,v 1.5 1996/01/04 22:21:55 jtc Exp $ */
/*-
* Copyright (c) 1993, 1994, 1995 Charles M. Hannum. All rights reserved.
@@ -98,7 +98,7 @@ freebsd_sendsig(catcher, sig, mask, code)
*/
if ((psp->ps_flags & SAS_ALTSTACK) && !oonstack &&
(psp->ps_sigonstack & sigmask(sig))) {
- fp = (struct freebsd_sigframe *)(psp->ps_sigstk.ss_base +
+ fp = (struct freebsd_sigframe *)(psp->ps_sigstk.ss_sp +
psp->ps_sigstk.ss_size - sizeof(struct freebsd_sigframe));
psp->ps_sigstk.ss_flags |= SS_ONSTACK;
} else {
diff --git a/sys/arch/i386/i386/linux_machdep.c b/sys/arch/i386/i386/linux_machdep.c
index 030eae2669a..27b1616907b 100644
--- a/sys/arch/i386/i386/linux_machdep.c
+++ b/sys/arch/i386/i386/linux_machdep.c
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_machdep.c,v 1.23 1995/10/10 04:54:25 mycroft Exp $ */
+/* $NetBSD: linux_machdep.c,v 1.24 1996/01/04 22:21:57 jtc Exp $ */
/*
* Copyright (c) 1995 Frank van der Linden
@@ -113,7 +113,7 @@ linux_sendsig(catcher, sig, mask, code)
*/
if ((psp->ps_flags & SAS_ALTSTACK) && !oonstack &&
(psp->ps_sigonstack & sigmask(sig))) {
- fp = (struct linux_sigframe *)(psp->ps_sigstk.ss_base +
+ fp = (struct linux_sigframe *)(psp->ps_sigstk.ss_sp +
psp->ps_sigstk.ss_size - sizeof(struct linux_sigframe));
psp->ps_sigstk.ss_flags |= SS_ONSTACK;
} else {
diff --git a/sys/arch/i386/i386/machdep.c b/sys/arch/i386/i386/machdep.c
index d1610181cc3..9659d1ca71b 100644
--- a/sys/arch/i386/i386/machdep.c
+++ b/sys/arch/i386/i386/machdep.c
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.182 1995/12/14 18:31:20 ghudson Exp $ */
+/* $NetBSD: machdep.c,v 1.183 1996/01/04 22:22:01 jtc Exp $ */
/*-
* Copyright (c) 1993, 1994, 1995 Charles M. Hannum. All rights reserved.
@@ -523,7 +523,7 @@ sendsig(catcher, sig, mask, code)
*/
if ((psp->ps_flags & SAS_ALTSTACK) && !oonstack &&
(psp->ps_sigonstack & sigmask(sig))) {
- fp = (struct sigframe *)(psp->ps_sigstk.ss_base +
+ fp = (struct sigframe *)(psp->ps_sigstk.ss_sp +
psp->ps_sigstk.ss_size - sizeof(struct sigframe));
psp->ps_sigstk.ss_flags |= SS_ONSTACK;
} else {
diff --git a/sys/arch/i386/i386/svr4_machdep.c b/sys/arch/i386/i386/svr4_machdep.c
index aea845b9f00..2f747f736dd 100644
--- a/sys/arch/i386/i386/svr4_machdep.c
+++ b/sys/arch/i386/i386/svr4_machdep.c
@@ -1,4 +1,4 @@
-/* $NetBSD: svr4_machdep.c,v 1.19 1995/10/11 17:04:11 mycroft Exp $ */
+/* $NetBSD: svr4_machdep.c,v 1.20 1996/01/04 22:22:04 jtc Exp $ */
/*
* Copyright (c) 1994 Christos Zoulas
@@ -329,7 +329,7 @@ svr4_sendsig(catcher, sig, mask, code)
*/
if ((psp->ps_flags & SAS_ALTSTACK) && !oonstack &&
(psp->ps_sigonstack & sigmask(sig))) {
- fp = (struct svr4_sigframe *)(psp->ps_sigstk.ss_base +
+ fp = (struct svr4_sigframe *)(psp->ps_sigstk.ss_sp +
psp->ps_sigstk.ss_size - sizeof(struct svr4_sigframe));
psp->ps_sigstk.ss_flags |= SS_ONSTACK;
} else {
diff --git a/sys/arch/m68k/m68k/sunos_machdep.c b/sys/arch/m68k/m68k/sunos_machdep.c
index 20250bd9565..15b6380044c 100644
--- a/sys/arch/m68k/m68k/sunos_machdep.c
+++ b/sys/arch/m68k/m68k/sunos_machdep.c
@@ -1,4 +1,4 @@
-/* $NetBSD: sunos_machdep.c,v 1.7 1995/10/10 21:18:01 gwr Exp $ */
+/* $NetBSD: sunos_machdep.c,v 1.8 1996/01/04 22:22:12 jtc Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -86,7 +86,6 @@ struct sunos_sigframe {
struct sunos_sigcontext sf_sc; /* I don't know if that's what
comes here */
};
-
/*
* much simpler sendsig() for SunOS processes, as SunOS does the whole
* context-saving in usermode. For now, no hardware information (ie.
@@ -135,7 +134,7 @@ sunos_sendsig(catcher, sig, mask, code)
fsize = sizeof(struct sunos_sigframe);
if ((psp->ps_flags & SAS_ALTSTACK) && oonstack == 0 &&
(psp->ps_sigonstack & sigmask(sig))) {
- fp = (struct sunos_sigframe *)(psp->ps_sigstk.ss_base +
+ fp = (struct sunos_sigframe *)(psp->ps_sigstk.ss_sp +
psp->ps_sigstk.ss_size - sizeof(struct sunos_sigframe));
psp->ps_sigstk.ss_flags |= SS_ONSTACK;
} else
diff --git a/sys/arch/mac68k/mac68k/machdep.c b/sys/arch/mac68k/mac68k/machdep.c
index 8c09edea343..7c4bb642498 100644
--- a/sys/arch/mac68k/mac68k/machdep.c
+++ b/sys/arch/mac68k/mac68k/machdep.c
@@ -555,7 +555,7 @@ sendsig(catcher, sig, mask, code)
*/
if ((psp->ps_flags & SAS_ALTSTACK) && oonstack == 0 &&
(psp->ps_sigonstack & sigmask(sig))) {
- fp = (struct sigframe *) (psp->ps_sigstk.ss_base +
+ fp = (struct sigframe *) (psp->ps_sigstk.ss_sp +
psp->ps_sigstk.ss_size - sizeof(struct sigframe));
psp->ps_sigstk.ss_flags |= SS_ONSTACK;
} else
diff --git a/sys/arch/mvme68k/mvme68k/machdep.c b/sys/arch/mvme68k/mvme68k/machdep.c
index 697c8406519..2d46e8e95cb 100644
--- a/sys/arch/mvme68k/mvme68k/machdep.c
+++ b/sys/arch/mvme68k/mvme68k/machdep.c
@@ -1,4 +1,4 @@
-/* $Id: machdep.c,v 1.5 1995/11/29 17:02:49 deraadt Exp $ */
+/* $Id: machdep.c,v 1.6 1996/01/05 16:18:00 deraadt Exp $ */
/*
* Copyright (c) 1995 Theo de Raadt
@@ -697,7 +697,7 @@ sendsig(catcher, sig, mask, code)
fsize = sizeof(struct sigframe);
if ((psp->ps_flags & SAS_ALTSTACK) && !oonstack &&
(psp->ps_sigonstack & sigmask(sig))) {
- fp = (struct sigframe *)(psp->ps_sigstk.ss_base +
+ fp = (struct sigframe *)(psp->ps_sigstk.ss_sp +
psp->ps_sigstk.ss_size - fsize);
psp->ps_sigstk.ss_flags |= SA_ONSTACK;
} else
diff --git a/sys/arch/mvme88k/mvme88k/machdep.c b/sys/arch/mvme88k/mvme88k/machdep.c
index fb3002a426f..cee667b0be4 100644
--- a/sys/arch/mvme88k/mvme88k/machdep.c
+++ b/sys/arch/mvme88k/mvme88k/machdep.c
@@ -577,7 +577,7 @@ sendsig(catcher, sig, mask, code)
if ((psp->ps_flags & SAS_ALTSTACK) &&
(psp->ps_sigstk.ss_flags & SA_ONSTACK) == 0 &&
(psp->ps_sigonstack & sigmask(sig))) {
- fp = (struct sigframe *)(psp->ps_sigstk.ss_base +
+ fp = (struct sigframe *)(psp->ps_sigstk.ss_sp +
psp->ps_sigstk.ss_size - fsize);
psp->ps_sigstk.ss_flags |= SA_ONSTACK;
} else
diff --git a/sys/arch/pc532/pc532/machdep.c b/sys/arch/pc532/pc532/machdep.c
index cf6b5fa0c22..61de9e27415 100644
--- a/sys/arch/pc532/pc532/machdep.c
+++ b/sys/arch/pc532/pc532/machdep.c
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.41 1995/11/30 00:59:02 jtc Exp $ */
+/* $NetBSD: machdep.c,v 1.42 1996/01/04 22:22:34 jtc Exp $ */
/*-
* Copyright (c) 1982, 1987, 1990 The Regents of the University of California.
@@ -532,7 +532,7 @@ sendsig(catcher, sig, mask, code)
*/
if ((ps->ps_flags & SAS_ALTSTACK) && !oonstack &&
(ps->ps_sigonstack & sigmask(sig))) {
- fp = (struct sigframe *)(ps->ps_sigstk.ss_base +
+ fp = (struct sigframe *)(ps->ps_sigstk.ss_sp +
ps->ps_sigstk.ss_size - sizeof(struct sigframe));
ps->ps_sigstk.ss_flags |= SS_ONSTACK;
} else {
diff --git a/sys/arch/pica/pica/machdep.c b/sys/arch/pica/pica/machdep.c
index 7a9c8f081d3..a93b28adc12 100644
--- a/sys/arch/pica/pica/machdep.c
+++ b/sys/arch/pica/pica/machdep.c
@@ -37,7 +37,7 @@
* SUCH DAMAGE.
*
* from: @(#)machdep.c 8.3 (Berkeley) 1/12/94
- * $Id: machdep.c,v 1.4 1995/10/28 23:09:55 deraadt Exp $
+ * $Id: machdep.c,v 1.5 1996/01/05 16:18:09 deraadt Exp $
*/
/* from: Utah Hdr: machdep.c 1.63 91/04/24 */
@@ -721,7 +721,7 @@ sendsig(catcher, sig, mask, code)
if ((psp->ps_flags & SAS_ALTSTACK) &&
(psp->ps_sigstk.ss_flags & SA_ONSTACK) == 0 &&
(psp->ps_sigonstack & sigmask(sig))) {
- fp = (struct sigframe *)(psp->ps_sigstk.ss_base +
+ fp = (struct sigframe *)(psp->ps_sigstk.ss_sp +
psp->ps_sigstk.ss_size - fsize);
psp->ps_sigstk.ss_flags |= SA_ONSTACK;
} else
diff --git a/sys/arch/pmax/pmax/machdep.c b/sys/arch/pmax/pmax/machdep.c
index ae94ef7c5ed..d7ff865d080 100644
--- a/sys/arch/pmax/pmax/machdep.c
+++ b/sys/arch/pmax/pmax/machdep.c
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.40 1995/12/28 06:45:00 jonathan Exp $ */
+/* $NetBSD: machdep.c,v 1.41 1996/01/04 22:22:40 jtc Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -913,7 +913,7 @@ sendsig(catcher, sig, mask, code)
if ((psp->ps_flags & SAS_ALTSTACK) &&
(psp->ps_sigstk.ss_flags & SS_ONSTACK) == 0 &&
(psp->ps_sigonstack & sigmask(sig))) {
- fp = (struct sigframe *)(psp->ps_sigstk.ss_base +
+ fp = (struct sigframe *)(psp->ps_sigstk.ss_sp +
psp->ps_sigstk.ss_size - fsize);
psp->ps_sigstk.ss_flags |= SS_ONSTACK;
} else
diff --git a/sys/arch/sparc/sparc/machdep.c b/sys/arch/sparc/sparc/machdep.c
index fbecc30b4f3..f2b858ad5ad 100644
--- a/sys/arch/sparc/sparc/machdep.c
+++ b/sys/arch/sparc/sparc/machdep.c
@@ -465,7 +465,7 @@ sendsig(catcher, sig, mask, code)
*/
if ((psp->ps_flags & SAS_ALTSTACK) && !oonstack &&
(psp->ps_sigonstack & sigmask(sig))) {
- fp = (struct sigframe *)(psp->ps_sigstk.ss_base +
+ fp = (struct sigframe *)(psp->ps_sigstk.ss_sp +
psp->ps_sigstk.ss_size);
psp->ps_sigstk.ss_flags |= SS_ONSTACK;
} else
diff --git a/sys/arch/sparc/sparc/svr4_machdep.c b/sys/arch/sparc/sparc/svr4_machdep.c
index ace5965bd8e..4d7ae0dfc37 100644
--- a/sys/arch/sparc/sparc/svr4_machdep.c
+++ b/sys/arch/sparc/sparc/svr4_machdep.c
@@ -1,4 +1,4 @@
-/* $NetBSD: svr4_machdep.c,v 1.11 1995/10/07 06:26:09 mycroft Exp $ */
+/* $NetBSD: svr4_machdep.c,v 1.12 1996/01/04 22:22:49 jtc Exp $ */
/*
* Copyright (c) 1994 Christos Zoulas
@@ -363,7 +363,7 @@ svr4_sendsig(catcher, sig, mask, code)
*/
if ((psp->ps_flags & SAS_ALTSTACK) && !oonstack &&
(psp->ps_sigonstack & sigmask(sig))) {
- fp = (struct svr4_sigframe *)(psp->ps_sigstk.ss_base +
+ fp = (struct svr4_sigframe *)(psp->ps_sigstk.ss_sp +
psp->ps_sigstk.ss_size - sizeof(struct svr4_sigframe));
psp->ps_sigstk.ss_flags |= SS_ONSTACK;
} else {
diff --git a/sys/arch/sun3/sun3/machdep.c b/sys/arch/sun3/sun3/machdep.c
index f921257924c..073f777b290 100644
--- a/sys/arch/sun3/sun3/machdep.c
+++ b/sys/arch/sun3/sun3/machdep.c
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.66 1995/10/07 06:26:13 mycroft Exp $ */
+/* $NetBSD: machdep.c,v 1.67 1996/01/04 22:22:54 jtc Exp $ */
/*
* Copyright (c) 1994, 1995 Gordon W. Ross
@@ -490,7 +490,7 @@ sendsig(catcher, sig, mask, code)
fsize = sizeof(struct sigframe);
if ((psp->ps_flags & SAS_ALTSTACK) && !oonstack &&
(psp->ps_sigonstack & sigmask(sig))) {
- fp = (struct sigframe *)(psp->ps_sigstk.ss_base +
+ fp = (struct sigframe *)(psp->ps_sigstk.ss_sp +
psp->ps_sigstk.ss_size - fsize);
psp->ps_sigstk.ss_flags |= SS_ONSTACK;
} else
diff --git a/sys/arch/vax/vax/machdep.c b/sys/arch/vax/vax/machdep.c
index d609abd11ff..f17365ff4c6 100644
--- a/sys/arch/vax/vax/machdep.c
+++ b/sys/arch/vax/vax/machdep.c
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.21 1995/12/13 18:45:54 ragge Exp $ */
+/* $NetBSD: machdep.c,v 1.22 1996/01/04 22:22:58 jtc Exp $ */
/*
* Copyright (c) 1994 Ludd, University of Lule}, Sweden.
@@ -425,7 +425,7 @@ sendsig(catcher, sig, mask, code)
/* First check what stack to work on */
if ((psp->ps_flags & SAS_ALTSTACK) && !oonstack &&
(psp->ps_sigonstack & sigmask(sig))) {
- cursp = (u_int *) (psp->ps_sigstk.ss_base +
+ cursp = (u_int *) (psp->ps_sigstk.ss_sp +
psp->ps_sigstk.ss_size);
psp->ps_sigstk.ss_flags |= SS_ONSTACK;
} else
diff --git a/sys/compat/common/kern_sig_43.c b/sys/compat/common/kern_sig_43.c
index f11be5dcd89..9703ea59a5c 100644
--- a/sys/compat/common/kern_sig_43.c
+++ b/sys/compat/common/kern_sig_43.c
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_sig_43.c,v 1.5 1995/10/07 06:26:29 mycroft Exp $ */
+/* $NetBSD: kern_sig_43.c,v 1.6 1996/01/04 22:23:01 jtc Exp $ */
/*
* Copyright (c) 1982, 1986, 1989, 1991, 1993
@@ -119,7 +119,7 @@ compat_43_sys_sigstack(p, v, retval)
int error = 0;
psp = p->p_sigacts;
- ss.ss_sp = psp->ps_sigstk.ss_base;
+ ss.ss_sp = psp->ps_sigstk.ss_sp;
ss.ss_onstack = psp->ps_sigstk.ss_flags & SS_ONSTACK;
if (SCARG(uap, oss) && (error = copyout((caddr_t)&ss,
(caddr_t)SCARG(uap, oss), sizeof (struct sigstack))))
@@ -130,7 +130,7 @@ compat_43_sys_sigstack(p, v, retval)
sizeof (ss)))
return (error);
psp->ps_flags |= SAS_ALTSTACK;
- psp->ps_sigstk.ss_base = ss.ss_sp;
+ psp->ps_sigstk.ss_sp = ss.ss_sp;
psp->ps_sigstk.ss_size = 0;
psp->ps_sigstk.ss_flags |= ss.ss_onstack & SS_ONSTACK;
return (0);
diff --git a/sys/compat/osf1/osf1_signal.c b/sys/compat/osf1/osf1_signal.c
index 027d919c28f..df540242755 100644
--- a/sys/compat/osf1/osf1_signal.c
+++ b/sys/compat/osf1/osf1_signal.c
@@ -186,7 +186,7 @@ osf1_to_bsd_sigaltstack(oss, bss)
struct sigaltstack *bss;
{
- bss->ss_base = oss->ss_sp;
+ bss->ss_sp = oss->ss_sp;
bss->ss_size = oss->ss_size;
bss->ss_flags = 0;
@@ -202,7 +202,7 @@ bsd_to_osf1_sigaltstack(bss, oss)
struct osf1_sigaltstack *oss;
{
- oss->ss_sp = bss->ss_base;
+ oss->ss_sp = bss->ss_sp;
oss->ss_size = bss->ss_size;
oss->ss_flags = 0;
diff --git a/sys/compat/svr4/svr4_signal.c b/sys/compat/svr4/svr4_signal.c
index 21b65d2962e..51810886d35 100644
--- a/sys/compat/svr4/svr4_signal.c
+++ b/sys/compat/svr4/svr4_signal.c
@@ -1,4 +1,4 @@
-/* $NetBSD: svr4_signal.c,v 1.19 1995/10/07 06:27:46 mycroft Exp $ */
+/* $NetBSD: svr4_signal.c,v 1.20 1996/01/04 22:23:06 jtc Exp $ */
/*
* Copyright (c) 1994 Christos Zoulas
@@ -224,7 +224,7 @@ svr4_to_bsd_sigaltstack(sss, bss)
struct sigaltstack *bss;
{
- bss->ss_base = sss->ss_sp;
+ bss->ss_sp = sss->ss_sp;
bss->ss_size = sss->ss_size;
bss->ss_flags = 0;
@@ -240,7 +240,7 @@ bsd_to_svr4_sigaltstack(bss, sss)
struct svr4_sigaltstack *sss;
{
- sss->ss_sp = bss->ss_base;
+ sss->ss_sp = bss->ss_sp;
sss->ss_size = bss->ss_size;
sss->ss_flags = 0;
diff --git a/sys/kern/kern_sig.c b/sys/kern/kern_sig.c
index 804b559aba2..ca2ab83a721 100644
--- a/sys/kern/kern_sig.c
+++ b/sys/kern/kern_sig.c
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_sig.c,v 1.50 1995/10/07 06:28:25 mycroft Exp $ */
+/* $NetBSD: kern_sig.c,v 1.51 1996/01/04 22:23:14 jtc Exp $ */
/*
* Copyright (c) 1982, 1986, 1989, 1991, 1993
@@ -247,7 +247,7 @@ execsigs(p)
*/
ps->ps_sigstk.ss_flags = SS_DISABLE;
ps->ps_sigstk.ss_size = 0;
- ps->ps_sigstk.ss_base = 0;
+ ps->ps_sigstk.ss_sp = 0;
ps->ps_flags = 0;
}
diff --git a/sys/sys/signal.h b/sys/sys/signal.h
index 761d97cecc0..036c67d4a98 100644
--- a/sys/sys/signal.h
+++ b/sys/sys/signal.h
@@ -1,4 +1,4 @@
-/* $NetBSD: signal.h,v 1.19 1995/08/13 22:51:24 mycroft Exp $ */
+/* $NetBSD: signal.h,v 1.20 1996/01/04 22:23:23 jtc Exp $ */
/*
* Copyright (c) 1982, 1986, 1989, 1991, 1993
@@ -149,7 +149,7 @@ typedef void (*sig_t) __P((int)); /* type of signal function */
* Structure used in sigaltstack call.
*/
struct sigaltstack {
- char *ss_base; /* signal stack base */
+ char *ss_sp; /* signal stack base */
int ss_size; /* signal stack length */
int ss_flags; /* SS_DISABLE and/or SS_ONSTACK */
};