diff options
author | 2011-07-30 20:50:47 +0000 | |
---|---|---|
committer | 2011-07-30 20:50:47 +0000 | |
commit | 8cebb5d3b2543e9a8594cc6ba97088aedea1baf6 (patch) | |
tree | 216a75381fb60d638d9a86dba5be7d51396d8657 | |
parent | fix error in previous; (diff) | |
download | wireguard-openbsd-8cebb5d3b2543e9a8594cc6ba97088aedea1baf6.tar.xz wireguard-openbsd-8cebb5d3b2543e9a8594cc6ba97088aedea1baf6.zip |
Send SIGBUS instead of SIGSEGV for unaligned access which is not emulated
ok kettenis
-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(); } |