Remove some #if 0 code that dates back to r1.1
authormlarkin <mlarkin@openbsd.org>
Sat, 8 Apr 2017 03:29:13 +0000 (03:29 +0000)
committermlarkin <mlarkin@openbsd.org>
Sat, 8 Apr 2017 03:29:13 +0000 (03:29 +0000)
Pointed out by Michael W. Bombardieri

sys/arch/i386/i386/trap.c

index f8e63d2..c2a036b 100644 (file)
@@ -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 */