diff options
author | Dale S. Rahn <rahnds@cvs.openbsd.org> | 2000-09-06 22:48:14 +0000 |
---|---|---|
committer | Dale S. Rahn <rahnds@cvs.openbsd.org> | 2000-09-06 22:48:14 +0000 |
commit | 9cbbd593a1c111fc16f9851249f2c4991d60a85e (patch) | |
tree | dcf10858ba10ea6bf8e78055a8ba5c044fd1a28b /sys/arch | |
parent | da7a25d10859c982a11a33053cb756e6b21b9a52 (diff) |
catch misaligned access exception for user mode.
wasn't here before because supposedly the processor
would handle misaligned accesses itself.
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/powerpc/powerpc/trap.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/arch/powerpc/powerpc/trap.c b/sys/arch/powerpc/powerpc/trap.c index 13e4f219d8c..998ecd50c1c 100644 --- a/sys/arch/powerpc/powerpc/trap.c +++ b/sys/arch/powerpc/powerpc/trap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: trap.c,v 1.19 2000/07/08 19:43:39 rahnds Exp $ */ +/* $OpenBSD: trap.c,v 1.20 2000/09/06 22:48:13 rahnds Exp $ */ /* $NetBSD: trap.c,v 1.3 1996/10/13 03:31:37 christos Exp $ */ /* @@ -332,6 +332,11 @@ syscall_bad: enable_fpu(p); break; + case EXC_ALI|EXC_USER: + /* alignment exception, kill process */ + trapsignal(p, SIGSEGV, VM_PROT_EXECUTE, SEGV_MAPERR, sv); + break; + default: brain_damage: |