Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Jun 2010 22:16:02 +0000 (UTC)
From:      Olivier Houchard <cognet@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r209223 - head/sys/arm/arm
Message-ID:  <201006152216.o5FMG20A009322@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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() ||



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