Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm/arm32 Support PMAP_NOCACHE in pmap_kenter_pa



details:   https://anonhg.NetBSD.org/src/rev/05d5f741978f
branches:  trunk
changeset: 781248:05d5f741978f
user:      matt <matt%NetBSD.org@localhost>
date:      Wed Aug 29 17:08:41 2012 +0000

description:
Support PMAP_NOCACHE in pmap_kenter_pa

diffstat:

 sys/arch/arm/arm32/pmap.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r 24eda05fd54b -r 05d5f741978f sys/arch/arm/arm32/pmap.c
--- a/sys/arch/arm/arm32/pmap.c Wed Aug 29 16:50:10 2012 +0000
+++ b/sys/arch/arm/arm32/pmap.c Wed Aug 29 17:08:41 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.232 2012/08/29 05:51:30 matt Exp $  */
+/*     $NetBSD: pmap.c,v 1.233 2012/08/29 17:08:41 matt Exp $  */
 
 /*
  * Copyright 2003 Wasabi Systems, Inc.
@@ -211,7 +211,7 @@
 #include <machine/param.h>
 #include <arm/arm32/katelib.h>
 
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.232 2012/08/29 05:51:30 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.233 2012/08/29 17:08:41 matt Exp $");
 
 #ifdef PMAP_DEBUG
 
@@ -3361,8 +3361,8 @@
                }
        }
 
-       *ptep = L2_S_PROTO | pa | L2_S_PROT(PTE_KERNEL, prot) |
-           pte_l2_s_cache_mode;
+       *ptep = L2_S_PROTO | pa | L2_S_PROT(PTE_KERNEL, prot)
+           | ((flags & PMAP_NOCACHE) ? 0 : pte_l2_s_cache_mode);
        PTE_SYNC(ptep);
 
        if (pg) {



Home | Main Index | Thread Index | Old Index