summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-01-28 03:54:54 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-01-28 03:54:54 +0000
commit88910b3f08704e4fa79ac4919476c394418d399f (patch)
tree1f5bcd06592d2c819b602455fe34ff3be460e318
parentbb4f3f0c809f32e604a7638b66bded8b9ea0e32c (diff)
add addr arg to sendsig/trapsignal; no siginfo_t support yet
-rw-r--r--sys/arch/arc/arc/machdep.c7
-rw-r--r--sys/arch/arc/arc/trap.c6
2 files changed, 7 insertions, 6 deletions
diff --git a/sys/arch/arc/arc/machdep.c b/sys/arch/arc/arc/machdep.c
index f96fcf36375..755fd0f1954 100644
--- a/sys/arch/arc/arc/machdep.c
+++ b/sys/arch/arc/arc/machdep.c
@@ -1,4 +1,4 @@
-/* $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
@@ -38,7 +38,7 @@
* 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 */
@@ -717,10 +717,11 @@ int sigpid = 0;
* 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;
diff --git a/sys/arch/arc/arc/trap.c b/sys/arch/arc/arc/trap.c
index 8c60becc1c7..cb847833d5d 100644
--- a/sys/arch/arc/arc/trap.c
+++ b/sys/arch/arc/arc/trap.c
@@ -1,4 +1,4 @@
-/* $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
@@ -39,7 +39,7 @@
* 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>
@@ -768,7 +768,7 @@ trap(statusReg, causeReg, vadr, pc, args)
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.