diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-01-05 16:18:39 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-01-05 16:18:39 +0000 |
commit | 965838951ec63319efe3d6acd3340bd8e44de631 (patch) | |
tree | 6dbdd602ebc67aca4d54f0965f5eba949d5ab1e2 /sys/arch/sparc | |
parent | 74d260749ea58c587f154bf4c0ffa1cfbac01cc9 (diff) |
ss_sp is correct, ss_base is not. noticed by agc@sde.uts.amdahl.com; netbsd pr#1784
Diffstat (limited to 'sys/arch/sparc')
-rw-r--r-- | sys/arch/sparc/sparc/machdep.c | 2 | ||||
-rw-r--r-- | sys/arch/sparc/sparc/svr4_machdep.c | 4 |
2 files changed, 3 insertions, 3 deletions
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 { |