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 Simplify ARM_MMU_EXTENDED #ifdefs
details: https://anonhg.NetBSD.org/src/rev/7e52b7fe39c0
branches: trunk
changeset: 346707:7e52b7fe39c0
user: skrll <skrll%NetBSD.org@localhost>
date: Fri Jul 29 09:47:09 2016 +0000
description:
Simplify ARM_MMU_EXTENDED #ifdefs
No functional change
diffstat:
sys/arch/arm/arm32/pmap.c | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diffs (55 lines):
diff -r bf127fbba74b -r 7e52b7fe39c0 sys/arch/arm/arm32/pmap.c
--- a/sys/arch/arm/arm32/pmap.c Fri Jul 29 07:28:52 2016 +0000
+++ b/sys/arch/arm/arm32/pmap.c Fri Jul 29 09:47:09 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.335 2016/07/14 15:51:41 skrll Exp $ */
+/* $NetBSD: pmap.c,v 1.336 2016/07/29 09:47:09 skrll Exp $ */
/*
* Copyright 2003 Wasabi Systems, Inc.
@@ -217,7 +217,7 @@
#include <arm/locore.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.335 2016/07/14 15:51:41 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.336 2016/07/29 09:47:09 skrll Exp $");
//#define PMAP_DEBUG
#ifdef PMAP_DEBUG
@@ -818,12 +818,10 @@
#endif /* ARM_MMU_EXTENDED */
}
+#ifndef ARM_MMU_EXTENDED
static inline void
pmap_tlb_flushID(pmap_t pm)
{
-#ifdef ARM_MMU_EXTENDED
- pmap_tlb_asid_release_all(pm);
-#else
if (pm->pm_cstate.cs_tlb_id) {
cpu_tlb_flushID();
#if ARM_MMU_V7 == 0
@@ -837,10 +835,8 @@
pm->pm_cstate.cs_tlb = 0;
#endif /* ARM_MMU_V7 */
}
-#endif /* ARM_MMU_EXTENDED */
}
-#ifndef ARM_MMU_EXTENDED
static inline void
pmap_tlb_flushD(pmap_t pm)
{
@@ -5125,7 +5121,11 @@
return;
if (pm->pm_remove_all) {
+#ifdef ARM_MMU_EXTENDED
+ pmap_tlb_asid_release_all(pm);
+#else
pmap_tlb_flushID(pm);
+#endif
pm->pm_remove_all = false;
}
Home |
Main Index |
Thread Index |
Old Index