summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormickey <mickey@openbsd.org>2004-06-16 02:09:55 +0000
committermickey <mickey@openbsd.org>2004-06-16 02:09:55 +0000
commit8b9bddf0582d8e6c80f0dd213fda431da4a04de6 (patch)
treeeead38b1583960cfc120acc7432cd4a10314d2d3
parentnew mirrors in Argentina, Belgium, and Russia (diff)
downloadwireguard-openbsd-8b9bddf0582d8e6c80f0dd213fda431da4a04de6.tar.xz
wireguard-openbsd-8b9bddf0582d8e6c80f0dd213fda431da4a04de6.zip
handle zero division for userland as well; from otto@
-rw-r--r--sys/arch/hppa/hppa/trap.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/hppa/hppa/trap.c b/sys/arch/hppa/hppa/trap.c
index 7f0d29dc131..858efe3487e 100644
--- a/sys/arch/hppa/hppa/trap.c
+++ b/sys/arch/hppa/hppa/trap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: trap.c,v 1.76 2004/06/10 21:13:55 kettenis Exp $ */
+/* $OpenBSD: trap.c,v 1.77 2004/06/16 02:09:55 mickey Exp $ */
/*
* Copyright (c) 1998-2004 Michael Shalayeff
@@ -333,6 +333,8 @@ trap(type, frame)
break;
case T_CONDITION | T_USER:
+ sv.sival_int = va;
+ trapsignal(p, SIGFPE, type &~ T_USER, FPE_INTDIV, sv);
break;
case T_PRIV_OP | T_USER: