Author: alc
Date: Thu Jul 10 20:55:38 2014
New Revision: 268504
URL: http://svnweb.freebsd.org/changeset/base/268504

Log:
  Correct the accounting code for wired mappings.  The wrong field of the PVO
  entry was being tested.  We were incrementing and decrementing the pmap's
  wired mapping count based on whether the physical page being mapped or
  unmapped was cache coherent, not whether it was a wired mapping.
  
  Reviewed by:  nwhitehorn

Modified:
  head/sys/powerpc/aim/mmu_oea.c

Modified: head/sys/powerpc/aim/mmu_oea.c
==============================================================================
--- head/sys/powerpc/aim/mmu_oea.c      Thu Jul 10 18:28:12 2014        
(r268503)
+++ head/sys/powerpc/aim/mmu_oea.c      Thu Jul 10 20:55:38 2014        
(r268504)
@@ -1992,7 +1992,7 @@ moea_pvo_enter(pmap_t pm, uma_zone_t zon
                first = 1;
        LIST_INSERT_HEAD(pvo_head, pvo, pvo_vlink);
 
-       if (pvo->pvo_pte.pte.pte_lo & PVO_WIRED)
+       if (pvo->pvo_vaddr & PVO_WIRED)
                pm->pm_stats.wired_count++;
        pm->pm_stats.resident_count++;
 
@@ -2031,7 +2031,7 @@ moea_pvo_remove(struct pvo_entry *pvo, i
         * Update our statistics.
         */
        pvo->pvo_pmap->pm_stats.resident_count--;
-       if (pvo->pvo_pte.pte.pte_lo & PVO_WIRED)
+       if (pvo->pvo_vaddr & PVO_WIRED)
                pvo->pvo_pmap->pm_stats.wired_count--;
 
        /*
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to