summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/arch/mvme68k/mvme68k/machdep.c3
-rw-r--r--sys/arch/sparc/sparc/machdep.c1
2 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/mvme68k/mvme68k/machdep.c b/sys/arch/mvme68k/mvme68k/machdep.c
index 4f2dd54ab4c..a71e2f76926 100644
--- a/sys/arch/mvme68k/mvme68k/machdep.c
+++ b/sys/arch/mvme68k/mvme68k/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.18 1997/02/03 15:04:58 deraadt Exp $ */
+/* $OpenBSD: machdep.c,v 1.19 1997/02/04 17:22:52 deraadt Exp $ */
/*
* Copyright (c) 1995 Theo de Raadt
@@ -847,6 +847,7 @@ sendsig(catcher, sig, mask, code, type, val)
kfp->sf_scp = hkfp->hsf_scp;
}
#endif
+ /* XXX do not copy out siginfo if not needed */
(void) copyout((caddr_t)kfp, (caddr_t)fp, fsize);
frame->f_regs[SP] = (int)fp;
#ifdef DEBUG
diff --git a/sys/arch/sparc/sparc/machdep.c b/sys/arch/sparc/sparc/machdep.c
index f0054117fd9..ded5e96700c 100644
--- a/sys/arch/sparc/sparc/machdep.c
+++ b/sys/arch/sparc/sparc/machdep.c
@@ -543,6 +543,7 @@ sendsig(catcher, sig, mask, code, type, val)
*/
newsp = (int)fp - sizeof(struct rwindow);
write_user_windows();
+ /* XXX do not copyout siginfo if not needed */
if (rwindow_save(p) || copyout((caddr_t)&sf, (caddr_t)fp, sizeof sf) ||
suword(&((struct rwindow *)newsp)->rw_in[6], oldsp)) {
/*