-/* $OpenBSD: machdep.c,v 1.16 1996/10/20 22:40:32 imp Exp $ */
+/* $OpenBSD: machdep.c,v 1.17 1997/01/28 03:54:52 deraadt Exp $ */
/*
* Copyright (c) 1988 University of Utah.
* Copyright (c) 1992, 1993
* SUCH DAMAGE.
*
* from: @(#)machdep.c 8.3 (Berkeley) 1/12/94
- * $Id: machdep.c,v 1.16 1996/10/20 22:40:32 imp Exp $
+ * $Id: machdep.c,v 1.17 1997/01/28 03:54:52 deraadt Exp $
*/
/* from: Utah Hdr: machdep.c 1.63 91/04/24 */
* Send an interrupt to process.
*/
void
-sendsig(catcher, sig, mask, code)
+sendsig(catcher, sig, mask, code, addr)
sig_t catcher;
int sig, mask;
u_long code;
+ caddr_t addr;
{
register struct proc *p = curproc;
register struct sigframe *fp;
-/* $OpenBSD: trap.c,v 1.6 1996/09/14 15:58:18 pefo Exp $ */
+/* $OpenBSD: trap.c,v 1.7 1997/01/28 03:54:53 deraadt Exp $ */
/*
* Copyright (c) 1988 University of Utah.
* Copyright (c) 1992, 1993
* from: Utah Hdr: trap.c 1.32 91/04/06
*
* from: @(#)trap.c 8.5 (Berkeley) 1/11/94
- * $Id: trap.c,v 1.6 1996/09/14 15:58:18 pefo Exp $
+ * $Id: trap.c,v 1.7 1997/01/28 03:54:53 deraadt Exp $
*/
#include <sys/param.h>
p->p_md.md_regs[PC] = pc;
p->p_md.md_regs[CAUSE] = causeReg;
p->p_md.md_regs[BADVADDR] = vadr;
- trapsignal(p, i, ucode);
+ trapsignal(p, i, ucode, (caddr_t)vadr);
out:
/*
* Note: we should only get here if returning to user mode.