Reduce differences between non-PAE and PAE pmaps. This diff removes an
authormlarkin <mlarkin@openbsd.org>
Tue, 14 Apr 2015 05:21:51 +0000 (05:21 +0000)
committermlarkin <mlarkin@openbsd.org>
Tue, 14 Apr 2015 05:21:51 +0000 (05:21 +0000)
unneeded disable/enable_intr sequence around the PTE unmap operation.

sys/arch/i386/i386/pmapae.c

index 142a2e8..8061392 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: pmapae.c,v 1.30 2015/04/12 21:37:33 mlarkin Exp $     */
+/*     $OpenBSD: pmapae.c,v 1.31 2015/04/14 05:21:51 mlarkin Exp $     */
 
 /*
  * Copyright (c) 2006-2008 Michael Shalayeff
@@ -532,14 +532,11 @@ pmap_unmap_ptes_pae(struct pmap *pmap)
 
        if (!pmap_is_curpmap(pmap)) {
 #if defined(MULTIPROCESSOR)
-               int ef = read_eflags();
-               disable_intr();
                APDP_PDE[0] = 0;
                APDP_PDE[1] = 0;
                APDP_PDE[2] = 0;
                APDP_PDE[3] = 0;
                pmap_apte_flush();
-               write_eflags(ef);
 #endif
        }
 }