From: mlarkin Date: Sat, 8 Apr 2017 03:29:13 +0000 (+0000) Subject: Remove some #if 0 code that dates back to r1.1 X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=fa9aa21ad92fb3b00c76ed2cfb38ce83cac03db0;p=openbsd Remove some #if 0 code that dates back to r1.1 Pointed out by Michael W. Bombardieri --- diff --git a/sys/arch/i386/i386/trap.c b/sys/arch/i386/i386/trap.c index f8e63d29385..c2a036b9425 100644 --- a/sys/arch/i386/i386/trap.c +++ b/sys/arch/i386/i386/trap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: trap.c,v 1.128 2017/03/09 20:31:41 guenther Exp $ */ +/* $OpenBSD: trap.c,v 1.129 2017/04/08 03:29:13 mlarkin Exp $ */ /* $NetBSD: trap.c,v 1.95 1996/05/05 06:50:02 mycroft Exp $ */ /*- @@ -375,11 +375,6 @@ trap(struct trapframe *frame) goto we_re_toast; pcb = &p->p_addr->u_pcb; -#if 0 - /* XXX - check only applies to 386's and 486's with WP off */ - if (frame->tf_err & PGEX_P) - goto we_re_toast; -#endif cr2 = rcr2(); KERNEL_LOCK(); /* This will only trigger if SMEP is enabled */