From b74ef7bac5077f29fc1c12e8b5ccaf0e2f1f8fdc Mon Sep 17 00:00:00 2001 From: "Dale S. Rahn" Date: Fri, 15 Sep 2000 03:52:38 +0000 Subject: When calling a signal handler, don't pass the kernel (local) address in r5. - From NetBSD --- sys/arch/powerpc/powerpc/machdep.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/arch/powerpc') diff --git a/sys/arch/powerpc/powerpc/machdep.c b/sys/arch/powerpc/powerpc/machdep.c index bc351d6e335..36667a1cf03 100644 --- a/sys/arch/powerpc/powerpc/machdep.c +++ b/sys/arch/powerpc/powerpc/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.46 2000/09/06 23:05:17 rahnds Exp $ */ +/* $OpenBSD: machdep.c,v 1.47 2000/09/15 03:52:37 rahnds Exp $ */ /* $NetBSD: machdep.c,v 1.4 1996/10/16 19:33:11 ws Exp $ */ /* @@ -731,7 +731,7 @@ sendsig(catcher, sig, mask, code, type, val) tf->lr = (int)catcher; tf->fixreg[3] = (int)sig; tf->fixreg[4] = (psp->ps_siginfo & sigmask(sig)) ? (int)&fp->sf_si : NULL; - tf->fixreg[5] = (int)&frame.sf_sc; + tf->fixreg[5] = (int)&fp->sf_sc; tf->srr0 = (int)(((char *)PS_STRINGS) - (p->p_emul->e_esigcode - p->p_emul->e_sigcode)); -- cgit v1.2.3