summaryrefslogtreecommitdiff
path: root/sys/arch/pica
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-01-12 16:45:26 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-01-12 16:45:26 +0000
commit9807134aa8d672508c00c5979b471c50767a4a58 (patch)
treee9160bab39fc6bc72b1cad6589855a74bd436f02 /sys/arch/pica
parent7d1dbee8e40acdc6772a2bc6c608dd3f8f592813 (diff)
SIGBUS is an alignment fault. SIGSEGV is an access violation
Diffstat (limited to 'sys/arch/pica')
-rw-r--r--sys/arch/pica/pica/trap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/pica/pica/trap.c b/sys/arch/pica/pica/trap.c
index bf210a3053e..ce3e1641db5 100644
--- a/sys/arch/pica/pica/trap.c
+++ b/sys/arch/pica/pica/trap.c
@@ -38,7 +38,7 @@
* from: Utah Hdr: trap.c 1.32 91/04/06
*
* from: @(#)trap.c 8.5 (Berkeley) 1/11/94
- * $Id: trap.c,v 1.3 1995/10/29 00:46:10 deraadt Exp $
+ * $Id: trap.c,v 1.4 1996/01/12 16:45:19 deraadt Exp $
*/
#include <sys/param.h>
@@ -429,7 +429,7 @@ trap(statusReg, causeReg, vadr, pc, args)
goto err;
}
ucode = vadr;
- i = (rv == KERN_PROTECTION_FAILURE) ? SIGBUS : SIGSEGV;
+ i = SIGSEGV;
break;
}
@@ -437,7 +437,7 @@ trap(statusReg, causeReg, vadr, pc, args)
case T_ADDR_ERR_ST+T_USER: /* misaligned or kseg access */
case T_BUS_ERR_IFETCH+T_USER: /* BERR asserted to cpu */
case T_BUS_ERR_LD_ST+T_USER: /* BERR asserted to cpu */
- i = SIGSEGV;
+ i = SIGBUS;
break;
case T_SYSCALL+T_USER: