diff options
author | Dale S. Rahn <rahnds@cvs.openbsd.org> | 2000-09-15 03:52:38 +0000 |
---|---|---|
committer | Dale S. Rahn <rahnds@cvs.openbsd.org> | 2000-09-15 03:52:38 +0000 |
commit | b74ef7bac5077f29fc1c12e8b5ccaf0e2f1f8fdc (patch) | |
tree | 30aa00b891572d32d9799547e00e313c05be0f40 /sys/arch/powerpc | |
parent | 63c5eb61c668e4a2ddfd9f0a104efdb6bbdada1d (diff) |
When calling a signal handler, don't pass the kernel (local) address in r5.
- From NetBSD
Diffstat (limited to 'sys/arch/powerpc')
-rw-r--r-- | sys/arch/powerpc/powerpc/machdep.c | 4 |
1 files changed, 2 insertions, 2 deletions
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)); |