diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-01-12 16:45:26 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-01-12 16:45:26 +0000 |
commit | 9807134aa8d672508c00c5979b471c50767a4a58 (patch) | |
tree | e9160bab39fc6bc72b1cad6589855a74bd436f02 /sys/arch/pmax | |
parent | 7d1dbee8e40acdc6772a2bc6c608dd3f8f592813 (diff) |
SIGBUS is an alignment fault. SIGSEGV is an access violation
Diffstat (limited to 'sys/arch/pmax')
-rw-r--r-- | sys/arch/pmax/pmax/trap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/pmax/pmax/trap.c b/sys/arch/pmax/pmax/trap.c index d4b3cf1a3ec..50f6b029d72 100644 --- a/sys/arch/pmax/pmax/trap.c +++ b/sys/arch/pmax/pmax/trap.c @@ -438,7 +438,7 @@ trap(statusReg, causeReg, vadr, pc, args) goto err; } ucode = vadr; - i = (rv == KERN_PROTECTION_FAILURE) ? SIGBUS : SIGSEGV; + i = SIGSEGV; break; } @@ -446,7 +446,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: |