summaryrefslogtreecommitdiffstats
path: root/sys/powerpc
diff options
context:
space:
mode:
authorbenno <benno@FreeBSD.org>2002-04-16 12:10:04 +0000
committerbenno <benno@FreeBSD.org>2002-04-16 12:10:04 +0000
commited687f83fffd9e94aeff5a31aa47e9ccb48ebb52 (patch)
tree77288445dd66941514916adc93c9319d7ac2156d /sys/powerpc
parentf2d443a680d049fa4f5d4a363d4b966ef19e7451 (diff)
downloadFreeBSD-src-ed687f83fffd9e94aeff5a31aa47e9ccb48ebb52.zip
FreeBSD-src-ed687f83fffd9e94aeff5a31aa47e9ccb48ebb52.tar.gz
Remove some dead code.
Diffstat (limited to 'sys/powerpc')
-rw-r--r--sys/powerpc/aim/mmu_oea.c16
-rw-r--r--sys/powerpc/powerpc/mmu_oea.c16
-rw-r--r--sys/powerpc/powerpc/pmap.c16
3 files changed, 0 insertions, 48 deletions
diff --git a/sys/powerpc/aim/mmu_oea.c b/sys/powerpc/aim/mmu_oea.c
index c144a73..4b3f04c 100644
--- a/sys/powerpc/aim/mmu_oea.c
+++ b/sys/powerpc/aim/mmu_oea.c
@@ -743,7 +743,6 @@ void
pmap_activate(struct thread *td)
{
pmap_t pm;
- int i;
/*
* Load all the data we need up front to encourasge the compiler to
@@ -754,21 +753,6 @@ pmap_activate(struct thread *td)
KASSERT(pm->pm_active == 0, ("pmap_activate: pmap already active?"));
pm->pm_active |= PCPU_GET(cpumask);
-
- /*
- * XXX: Address this again later?
- * NetBSD only change the segment registers on return to userland.
- */
-#if 0
- critical_enter();
-
- for (i = 0; i < 16; i++) {
- __asm __volatile("mtsr %0,%1" :: "r"(i), "r"(pm->pm_sr[i]));
- }
- __asm __volatile("sync; isync");
-
- critical_exit();
-#endif
}
void
diff --git a/sys/powerpc/powerpc/mmu_oea.c b/sys/powerpc/powerpc/mmu_oea.c
index c144a73..4b3f04c 100644
--- a/sys/powerpc/powerpc/mmu_oea.c
+++ b/sys/powerpc/powerpc/mmu_oea.c
@@ -743,7 +743,6 @@ void
pmap_activate(struct thread *td)
{
pmap_t pm;
- int i;
/*
* Load all the data we need up front to encourasge the compiler to
@@ -754,21 +753,6 @@ pmap_activate(struct thread *td)
KASSERT(pm->pm_active == 0, ("pmap_activate: pmap already active?"));
pm->pm_active |= PCPU_GET(cpumask);
-
- /*
- * XXX: Address this again later?
- * NetBSD only change the segment registers on return to userland.
- */
-#if 0
- critical_enter();
-
- for (i = 0; i < 16; i++) {
- __asm __volatile("mtsr %0,%1" :: "r"(i), "r"(pm->pm_sr[i]));
- }
- __asm __volatile("sync; isync");
-
- critical_exit();
-#endif
}
void
diff --git a/sys/powerpc/powerpc/pmap.c b/sys/powerpc/powerpc/pmap.c
index c144a73..4b3f04c 100644
--- a/sys/powerpc/powerpc/pmap.c
+++ b/sys/powerpc/powerpc/pmap.c
@@ -743,7 +743,6 @@ void
pmap_activate(struct thread *td)
{
pmap_t pm;
- int i;
/*
* Load all the data we need up front to encourasge the compiler to
@@ -754,21 +753,6 @@ pmap_activate(struct thread *td)
KASSERT(pm->pm_active == 0, ("pmap_activate: pmap already active?"));
pm->pm_active |= PCPU_GET(cpumask);
-
- /*
- * XXX: Address this again later?
- * NetBSD only change the segment registers on return to userland.
- */
-#if 0
- critical_enter();
-
- for (i = 0; i < 16; i++) {
- __asm __volatile("mtsr %0,%1" :: "r"(i), "r"(pm->pm_sr[i]));
- }
- __asm __volatile("sync; isync");
-
- critical_exit();
-#endif
}
void
OpenPOWER on IntegriCloud