summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormickey <mickey@openbsd.org>2003-08-03 18:55:04 +0000
committermickey <mickey@openbsd.org>2003-08-03 18:55:04 +0000
commitca1d8271f1d0efcf07fc418963c3de4f8ba77e25 (patch)
tree5a30d09d958a4bf4a95b76149178d58a4815a54f
parentanother gapped system call handled incorrectly: truncate64; marius@monkey.org (diff)
downloadwireguard-openbsd-ca1d8271f1d0efcf07fc418963c3de4f8ba77e25.tar.xz
wireguard-openbsd-ca1d8271f1d0efcf07fc418963c3de4f8ba77e25.zip
clear branch and nullify bits in psw on sending a signal
-rw-r--r--sys/arch/hppa/hppa/machdep.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arch/hppa/hppa/machdep.c b/sys/arch/hppa/hppa/machdep.c
index 41f7992cb3a..4f13b2807f0 100644
--- a/sys/arch/hppa/hppa/machdep.c
+++ b/sys/arch/hppa/hppa/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.107 2003/07/30 21:24:19 mickey Exp $ */
+/* $OpenBSD: machdep.c,v 1.108 2003/08/03 18:55:04 mickey Exp $ */
/*
* Copyright (c) 1999-2002 Michael Shalayeff
@@ -1325,6 +1325,7 @@ sendsig(catcher, sig, mask, code, type, val)
tf->tf_arg2 = tf->tf_r3 = (register_t)scp;
tf->tf_arg3 = (register_t)catcher;
tf->tf_sp = (register_t)scp + sss;
+ tf->tf_ipsw &= ~(PSL_B | PSL_N);
tf->tf_iioq_head = HPPA_PC_PRIV_USER | p->p_sigcode;
tf->tf_iioq_tail = tf->tf_iioq_head + 4;
/* disable tracing in the trapframe */