summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1996-10-17 13:36:45 +0000
committerderaadt <deraadt@openbsd.org>1996-10-17 13:36:45 +0000
commit2af45b0af928382e2273cbbdccd0ba30b450eb80 (patch)
tree0f0a28a36759aaae116e5ea3a6212bf8d88a63e8
parentprototype stat,fstat (diff)
downloadwireguard-openbsd-2af45b0af928382e2273cbbdccd0ba30b450eb80.tar.xz
wireguard-openbsd-2af45b0af928382e2273cbbdccd0ba30b450eb80.zip
more SIGBUS garbage
-rw-r--r--sys/arch/i386/i386/trap.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/arch/i386/i386/trap.c b/sys/arch/i386/i386/trap.c
index bc6d0badaf3..ce83d2eea25 100644
--- a/sys/arch/i386/i386/trap.c
+++ b/sys/arch/i386/i386/trap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: trap.c,v 1.11 1996/08/27 10:46:52 downsj Exp $ */
+/* $OpenBSD: trap.c,v 1.12 1996/10/17 13:36:45 deraadt Exp $ */
/* $NetBSD: trap.c,v 1.95 1996/05/05 06:50:02 mycroft Exp $ */
#undef DEBUG
@@ -280,6 +280,9 @@ trap(frame)
#endif
case T_SEGNPFLT|T_USER:
case T_STKFLT|T_USER:
+ trapsignal(p, SIGSEGV, type &~ T_USER);
+ goto out;
+
case T_ALIGNFLT|T_USER:
trapsignal(p, SIGBUS, type &~ T_USER);
goto out;