diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2011-07-30 20:50:48 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2011-07-30 20:50:48 +0000 |
commit | 7632ab37a7bac15f92a3835a309dad9df2c68f00 (patch) | |
tree | 44d3327b687dae02764a5b9e23e24ebdaa03ff66 /sys | |
parent | bd4a426269ceec78801d0effddd024eabc876d10 (diff) |
Send SIGBUS instead of SIGSEGV for unaligned access which is not emulated
ok kettenis
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/powerpc/powerpc/trap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/powerpc/powerpc/trap.c b/sys/arch/powerpc/powerpc/trap.c index 8abdcddab2c..9ddf7d9db64 100644 --- a/sys/arch/powerpc/powerpc/trap.c +++ b/sys/arch/powerpc/powerpc/trap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: trap.c,v 1.87 2011/07/11 15:40:47 guenther Exp $ */ +/* $OpenBSD: trap.c,v 1.88 2011/07/30 20:50:47 deraadt Exp $ */ /* $NetBSD: trap.c,v 1.3 1996/10/13 03:31:37 christos Exp $ */ /* @@ -560,7 +560,7 @@ syscall_bad: else { sv.sival_int = frame->srr0; KERNEL_LOCK(); - trapsignal(p, SIGSEGV, VM_PROT_EXECUTE, SEGV_MAPERR, + trapsignal(p, SIGBUS, VM_PROT_EXECUTE, BUS_ADRALN, sv); KERNEL_UNLOCK(); } |