Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Jul 2014 20:55:38 +0000 (UTC)
From:      Alan Cox <alc@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r268504 - head/sys/powerpc/aim
Message-ID:  <201407102055.s6AKtcQj008688@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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--;
 
 	/*



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201407102055.s6AKtcQj008688>