summaryrefslogtreecommitdiffstats
path: root/sys/powerpc
diff options
context:
space:
mode:
Diffstat (limited to 'sys/powerpc')
-rw-r--r--sys/powerpc/aim/mmu_oea.c13
-rw-r--r--sys/powerpc/include/pmap.h1
-rw-r--r--sys/powerpc/powerpc/mmu_oea.c13
-rw-r--r--sys/powerpc/powerpc/pmap.c13
4 files changed, 0 insertions, 40 deletions
diff --git a/sys/powerpc/aim/mmu_oea.c b/sys/powerpc/aim/mmu_oea.c
index 3f60de3..6469d14 100644
--- a/sys/powerpc/aim/mmu_oea.c
+++ b/sys/powerpc/aim/mmu_oea.c
@@ -686,7 +686,6 @@ pmap_bootstrap(vm_offset_t kernelstart, vm_offset_t kernelend)
}
kernel_pmap->pm_sr[KERNEL_SR] = KERNEL_SEGMENT;
kernel_pmap->pm_active = ~0;
- kernel_pmap->pm_count = 1;
/*
* Allocate a kernel stack with a guard page for thread0 and map it
@@ -1223,7 +1222,6 @@ pmap_pinit(pmap_t pmap)
/*
* Allocate some segment registers for this pmap.
*/
- pmap->pm_count = 1;
for (i = 0; i < NPMAPS; i += VSID_NBPW) {
u_int hash, n;
@@ -1369,17 +1367,6 @@ pmap_qremove(vm_offset_t va, int count)
pmap_kremove(va);
}
-/*
- * Add a reference to the specified pmap.
- */
-void
-pmap_reference(pmap_t pm)
-{
-
- if (pm != NULL)
- pm->pm_count++;
-}
-
void
pmap_release(pmap_t pmap)
{
diff --git a/sys/powerpc/include/pmap.h b/sys/powerpc/include/pmap.h
index 841e55a..19b3d96 100644
--- a/sys/powerpc/include/pmap.h
+++ b/sys/powerpc/include/pmap.h
@@ -41,7 +41,6 @@ struct pmap {
u_int pm_sr[16];
u_int pm_active;
u_int pm_context;
- u_int pm_count;
struct pmap_statistics pm_stats;
};
diff --git a/sys/powerpc/powerpc/mmu_oea.c b/sys/powerpc/powerpc/mmu_oea.c
index 3f60de3..6469d14 100644
--- a/sys/powerpc/powerpc/mmu_oea.c
+++ b/sys/powerpc/powerpc/mmu_oea.c
@@ -686,7 +686,6 @@ pmap_bootstrap(vm_offset_t kernelstart, vm_offset_t kernelend)
}
kernel_pmap->pm_sr[KERNEL_SR] = KERNEL_SEGMENT;
kernel_pmap->pm_active = ~0;
- kernel_pmap->pm_count = 1;
/*
* Allocate a kernel stack with a guard page for thread0 and map it
@@ -1223,7 +1222,6 @@ pmap_pinit(pmap_t pmap)
/*
* Allocate some segment registers for this pmap.
*/
- pmap->pm_count = 1;
for (i = 0; i < NPMAPS; i += VSID_NBPW) {
u_int hash, n;
@@ -1369,17 +1367,6 @@ pmap_qremove(vm_offset_t va, int count)
pmap_kremove(va);
}
-/*
- * Add a reference to the specified pmap.
- */
-void
-pmap_reference(pmap_t pm)
-{
-
- if (pm != NULL)
- pm->pm_count++;
-}
-
void
pmap_release(pmap_t pmap)
{
diff --git a/sys/powerpc/powerpc/pmap.c b/sys/powerpc/powerpc/pmap.c
index 3f60de3..6469d14 100644
--- a/sys/powerpc/powerpc/pmap.c
+++ b/sys/powerpc/powerpc/pmap.c
@@ -686,7 +686,6 @@ pmap_bootstrap(vm_offset_t kernelstart, vm_offset_t kernelend)
}
kernel_pmap->pm_sr[KERNEL_SR] = KERNEL_SEGMENT;
kernel_pmap->pm_active = ~0;
- kernel_pmap->pm_count = 1;
/*
* Allocate a kernel stack with a guard page for thread0 and map it
@@ -1223,7 +1222,6 @@ pmap_pinit(pmap_t pmap)
/*
* Allocate some segment registers for this pmap.
*/
- pmap->pm_count = 1;
for (i = 0; i < NPMAPS; i += VSID_NBPW) {
u_int hash, n;
@@ -1369,17 +1367,6 @@ pmap_qremove(vm_offset_t va, int count)
pmap_kremove(va);
}
-/*
- * Add a reference to the specified pmap.
- */
-void
-pmap_reference(pmap_t pm)
-{
-
- if (pm != NULL)
- pm->pm_count++;
-}
-
void
pmap_release(pmap_t pmap)
{
OpenPOWER on IntegriCloud