Module Name: src
Committed By: snj
Date: Fri Feb 26 22:31:06 UTC 2016
Modified Files:
src/sys/arch/arm/arm32 [netbsd-7]: pmap.c
Log Message:
Pull up following revision(s) (requested by skrll in ticket #1106):
sys/arch/arm/arm32/pmap.c: revision 1.332
Delete pmap_pmaps and its only user pmap_dump_all. The list wasn't
being updated in an MP-safe manner.
To generate a diff of this commit:
cvs rdiff -u -r1.295.2.7 -r1.295.2.8 src/sys/arch/arm/arm32/pmap.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/arm/arm32/pmap.c
diff -u src/sys/arch/arm/arm32/pmap.c:1.295.2.7 src/sys/arch/arm/arm32/pmap.c:1.295.2.8
--- src/sys/arch/arm/arm32/pmap.c:1.295.2.7 Wed May 27 05:33:29 2015
+++ src/sys/arch/arm/arm32/pmap.c Fri Feb 26 22:31:06 2016
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.295.2.7 2015/05/27 05:33:29 msaitoh Exp $ */
+/* $NetBSD: pmap.c,v 1.295.2.8 2016/02/26 22:31:06 snj Exp $ */
/*
* Copyright 2003 Wasabi Systems, Inc.
@@ -217,7 +217,7 @@
#include <arm/locore.h>
//#include <arm/arm32/katelib.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.295.2.7 2015/05/27 05:33:29 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.295.2.8 2016/02/26 22:31:06 snj Exp $");
//#define PMAP_DEBUG
#ifdef PMAP_DEBUG
@@ -281,7 +281,6 @@ int arm_poolpage_vmfreelist = VM_FREEL
* in pmap_create().
*/
static struct pool_cache pmap_cache;
-static LIST_HEAD(, pmap) pmap_pmaps;
/*
* Pool of PV structures
@@ -3035,8 +3034,6 @@ pmap_create(void)
pmap_pinit(pm);
- LIST_INSERT_HEAD(&pmap_pmaps, pm, pm_list);
-
return (pm);
}
@@ -5102,8 +5099,6 @@ pmap_destroy(pmap_t pm)
}
#endif
- LIST_REMOVE(pm, pm_list);
-
pmap_free_l1(pm);
#ifdef ARM_MMU_EXTENDED
@@ -6240,8 +6235,6 @@ pmap_bootstrap(vaddr_t vstart, vaddr_t v
*/
pool_cache_bootstrap(&pmap_cache, sizeof(struct pmap), 0, 0, 0,
"pmappl", NULL, IPL_NONE, pmap_pmap_ctor, NULL, NULL);
- LIST_INIT(&pmap_pmaps);
- LIST_INSERT_HEAD(&pmap_pmaps, pm, pm_list);
/*
* Initialize the pv pool.
@@ -7486,22 +7479,8 @@ pmap_kernel_L1_addr(void)
/*
* A couple of ddb-callable functions for dumping pmaps
*/
-void pmap_dump_all(void);
void pmap_dump(pmap_t);
-void
-pmap_dump_all(void)
-{
- pmap_t pm;
-
- LIST_FOREACH(pm, &pmap_pmaps, pm_list) {
- if (pm == pmap_kernel())
- continue;
- pmap_dump(pm);
- printf("\n");
- }
-}
-
static pt_entry_t ncptes[64];
static void pmap_dump_ncpg(pmap_t);