svn commit: r209223 - head/sys/arm/arm

Olivier Houchard cognet at FreeBSD.org
Tue Jun 15 22:16:02 UTC 2010


Author: cognet
Date: Tue Jun 15 22:16:02 2010
New Revision: 209223
URL: http://svn.freebsd.org/changeset/base/209223

Log:
  Turn off cache if there's more than one kernel mapping, and one is writable.
  
  Submitted by:   Mark Tinguely

Modified:
  head/sys/arm/arm/pmap.c

Modified: head/sys/arm/arm/pmap.c
==============================================================================
--- head/sys/arm/arm/pmap.c	Tue Jun 15 22:01:38 2010	(r209222)
+++ head/sys/arm/arm/pmap.c	Tue Jun 15 22:16:02 2010	(r209223)
@@ -1368,7 +1368,7 @@ pmap_fix_cache(struct vm_page *pg, pmap_
 		 * check for kernel uncachable conditions
 		 * kernel writable or kernel readable with writable user entry
 		 */
-		if ((kwritable && entries) ||
+		if ((kwritable && (entries || kentries > 1)) ||
 		    (kwritable > 1) ||
 		    ((kwritable != writable) && kentries &&
 		     (pv->pv_pmap == pmap_kernel() ||


More information about the svn-src-head mailing list