summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2004-06-16 02:09:56 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2004-06-16 02:09:56 +0000
commit385adbdda87af4abcdddc5f6421686d6b84cf5ec (patch)
tree48b37aad8f3b25ae98e48d6a15be74dea0d81c10 /sys
parenta27811c23ab52dc1d2314ad7f70678d2700e3bbc (diff)
handle zero division for userland as well; from otto@
Diffstat (limited to 'sys')
-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: