From 965838951ec63319efe3d6acd3340bd8e44de631 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Fri, 5 Jan 1996 16:18:39 +0000 Subject: ss_sp is correct, ss_base is not. noticed by agc@sde.uts.amdahl.com; netbsd pr#1784 --- sys/arch/pc532/pc532/machdep.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/arch/pc532') 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 { -- cgit v1.2.3