From 9807134aa8d672508c00c5979b471c50767a4a58 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Fri, 12 Jan 1996 16:45:26 +0000 Subject: SIGBUS is an alignment fault. SIGSEGV is an access violation --- sys/arch/pica/pica/trap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/arch/pica') 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 @@ -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: -- cgit v1.2.3