summaryrefslogtreecommitdiff
path: root/sys/arch/arm
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2004-02-16 15:40:01 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2004-02-16 15:40:01 +0000
commit03c1b196f94f665daf571370428cc9cf2e37683f (patch)
treeb4bbe72f50d28f461f74d57f676aedf6256b2fce /sys/arch/arm
parent68ac231be69b8cd71e43310bf0663009fe948b68 (diff)
Correctly pass the siginfo_t structure to signal handlers.
ok drahn@
Diffstat (limited to 'sys/arch/arm')
-rw-r--r--sys/arch/arm/arm/sig_machdep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/arm/arm/sig_machdep.c b/sys/arch/arm/arm/sig_machdep.c
index cf5756ba210..fd710f677c6 100644
--- a/sys/arch/arm/arm/sig_machdep.c
+++ b/sys/arch/arm/arm/sig_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sig_machdep.c,v 1.1 2004/02/01 05:09:48 drahn Exp $ */
+/* $OpenBSD: sig_machdep.c,v 1.2 2004/02/16 15:40:00 miod Exp $ */
/* $NetBSD: sig_machdep.c,v 1.22 2003/10/08 00:28:41 thorpej Exp $ */
/*
@@ -166,7 +166,7 @@ sendsig(sig_t catcher, int sig, int returnmask, u_long code, int type,
* we do a new trampoline version it might change then
*/
tf->tf_r0 = sig;
- tf->tf_r1 = code;
+ tf->tf_r1 = (int)frame.sf_sip;
tf->tf_r2 = (int)frame.sf_scp;
tf->tf_pc = (int)frame.sf_handler;
tf->tf_usr_sp = (int)fp;