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/m68k | |
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/m68k')
-rw-r--r-- | sys/arch/m68k/m68k/sunos_machdep.c | 5 |
1 files changed, 2 insertions, 3 deletions
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 |