diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-05-04 09:24:08 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-05-04 09:24:08 +0000 |
commit | 6feb124289eea67f83a437e1dc3833fb6db9fc78 (patch) | |
tree | d808f15b8b088c54e82de1523ecce2fa4819b1b3 /sys/arch | |
parent | 4af5efa363e6fb2f2e17777f9ef6d094bcbb0cbd (diff) |
bring back change in rev 1.4: we do not do SIGBUS the wrong way
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/i386/i386/trap.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/sys/arch/i386/i386/trap.c b/sys/arch/i386/i386/trap.c index b9a43121e5d..d6032193441 100644 --- a/sys/arch/i386/i386/trap.c +++ b/sys/arch/i386/i386/trap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: trap.c,v 1.7 1996/04/21 22:16:40 deraadt Exp $ */ +/* $OpenBSD: trap.c,v 1.8 1996/05/04 09:24:07 deraadt Exp $ */ /* $NetBSD: trap.c,v 1.93 1996/04/15 00:20:32 mycroft Exp $ */ #undef DEBUG @@ -73,8 +73,8 @@ #include <compat/ibcs2/ibcs2_exec.h> extern struct emul emul_ibcs2; #endif -#ifdef COMPAT_LINUX #include <sys/exec.h> +#ifdef COMPAT_LINUX #include <compat/linux/linux_syscall.h> extern struct emul emul_linux_aout, emul_linux_elf; #endif @@ -413,11 +413,7 @@ trap(frame) map, va, ftype, rv); goto we_re_toast; } - trapsignal(p, (rv == KERN_PROTECTION_FAILURE -#ifdef COMPAT_LINUX - && p->p_emul != &emul_linux_aout && p->p_emul != &emul_linux_elf -#endif - ) ? SIGBUS : SIGSEGV, T_PAGEFLT); + trapsignal(p, SIGSEGV, T_PAGEFLT); break; } |