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 pmap_tlb_flushD is for !ARM_MMU_EXTENDED ...



details:   https://anonhg.NetBSD.org/src/rev/bd1f8d5c76e8
branches:  trunk
changeset: 333456:bd1f8d5c76e8
user:      matt <matt%NetBSD.org@localhost>
date:      Tue Nov 04 23:58:21 2014 +0000

description:
pmap_tlb_flushD is for !ARM_MMU_EXTENDED only now

diffstat:

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

diffs (42 lines):

diff -r 9828aab79bdf -r bd1f8d5c76e8 sys/arch/arm/arm32/pmap.c
--- a/sys/arch/arm/arm32/pmap.c Tue Nov 04 23:25:00 2014 +0000
+++ b/sys/arch/arm/arm32/pmap.c Tue Nov 04 23:58:21 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.307 2014/10/29 22:52:21 skrll Exp $ */
+/*     $NetBSD: pmap.c,v 1.308 2014/11/04 23:58:21 matt Exp $  */
 
 /*
  * Copyright 2003 Wasabi Systems, Inc.
@@ -215,7 +215,7 @@
 
 #include <arm/locore.h>
 
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.307 2014/10/29 22:52:21 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.308 2014/11/04 23:58:21 matt Exp $");
 
 //#define PMAP_DEBUG
 #ifdef PMAP_DEBUG
@@ -838,12 +838,10 @@
 #endif /* ARM_MMU_EXTENDED */
 }
 
+#ifndef ARM_MMU_EXTENDED
 static inline void
 pmap_tlb_flushD(pmap_t pm)
 {
-#ifdef ARM_MMU_EXTENDED
-       pmap_tlb_asid_release_all(pm);
-#else
        if (pm->pm_cstate.cs_tlb_d) {
                cpu_tlb_flushD();
 #if ARM_MMU_V7 == 0
@@ -857,8 +855,8 @@
                pm->pm_cstate.cs_tlb_d = 0;
 #endif /* ARM_MMU_V7 */
        }
+}
 #endif /* ARM_MMU_EXTENDED */
-}
 
 #ifdef PMAP_CACHE_VIVT
 static inline void



Home | Main Index | Thread Index | Old Index