From 8b1f99cdd4a8584f58184e281c56da85335d1674 Mon Sep 17 00:00:00 2001 From: Olivier Houchard Date: Tue, 15 Jun 2010 22:16:02 +0000 Subject: [PATCH] Turn off cache if there's more than one kernel mapping, and one is writable. Submitted by: Mark Tinguely --- sys/arm/arm/pmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/arm/arm/pmap.c b/sys/arm/arm/pmap.c index da567754e174..3bcbbe0c98b8 100644 --- a/sys/arm/arm/pmap.c +++ b/sys/arm/arm/pmap.c @@ -1368,7 +1368,7 @@ pmap_fix_cache(struct vm_page *pg, pmap_t pm, vm_offset_t va) * 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() ||