summaryrefslogtreecommitdiff
path: root/sys/arch/sparc
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-12-07 10:44:53 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-12-07 10:44:53 +0000
commitb478b29427ce525f4820d3ccf21f6636f4c6f3ae (patch)
treecde14a8d3ab883bd84afe34fb08d8924b621b703 /sys/arch/sparc
parent0c046f3f5f01e0c0689082661fa39b2bad7160c4 (diff)
Remove pmap_cache_enable. it was a mistake.
Diffstat (limited to 'sys/arch/sparc')
-rw-r--r--sys/arch/sparc/include/pmap.h3
-rw-r--r--sys/arch/sparc/sparc/cpu.c3
-rw-r--r--sys/arch/sparc/sparc/pmap.c31
3 files changed, 3 insertions, 34 deletions
diff --git a/sys/arch/sparc/include/pmap.h b/sys/arch/sparc/include/pmap.h
index 879285e02eb..e3930470e3d 100644
--- a/sys/arch/sparc/include/pmap.h
+++ b/sys/arch/sparc/include/pmap.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.h,v 1.27 2001/12/07 10:35:33 art Exp $ */
+/* $OpenBSD: pmap.h,v 1.28 2001/12/07 10:44:51 art Exp $ */
/* $NetBSD: pmap.h,v 1.30 1997/08/04 20:00:47 pk Exp $ */
/*
@@ -303,7 +303,6 @@ void pmap_redzone __P((void));
void kvm_setcache __P((caddr_t, int, int));
#define kvm_uncache(addr, npages) kvm_setcache(addr, npages, 0)
#define kvm_recache(addr, npages) kvm_setcache(addr, npages, 1)
-void pmap_cache_enable __P((void));
struct user;
void switchexit __P((struct proc *));
int mmu_pagein __P((struct pmap *pm, vaddr_t, int));
diff --git a/sys/arch/sparc/sparc/cpu.c b/sys/arch/sparc/sparc/cpu.c
index b6835308192..66425e45b3b 100644
--- a/sys/arch/sparc/sparc/cpu.c
+++ b/sys/arch/sparc/sparc/cpu.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cpu.c,v 1.34 2001/12/05 14:40:48 art Exp $ */
+/* $OpenBSD: cpu.c,v 1.35 2001/12/07 10:44:52 art Exp $ */
/* $NetBSD: cpu.c,v 1.56 1997/09/15 20:52:36 pk Exp $ */
/*
@@ -252,7 +252,6 @@ cpu_attach(parent, self, aux)
*/
s = splhigh();
sc->cache_enable();
- pmap_cache_enable();
splx(s);
return;
}
diff --git a/sys/arch/sparc/sparc/pmap.c b/sys/arch/sparc/sparc/pmap.c
index dc39f219c12..fe4d7b4e6d7 100644
--- a/sys/arch/sparc/sparc/pmap.c
+++ b/sys/arch/sparc/sparc/pmap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.c,v 1.103 2001/12/07 10:39:46 art Exp $ */
+/* $OpenBSD: pmap.c,v 1.104 2001/12/07 10:44:52 art Exp $ */
/* $NetBSD: pmap.c,v 1.118 1998/05/19 19:00:18 thorpej Exp $ */
/*
@@ -3348,35 +3348,6 @@ pmap_init()
}
/*
- * Called just after enabling cache (so that CPUFLG_CACHEPAGETABLES is
- * set correctly).
- */
-void
-pmap_cache_enable()
-{
-#ifdef SUN4M
- if (CPU_ISSUN4M) {
- int pte;
-
- /*
- * Deal with changed CPUFLG_CACHEPAGETABLES.
- *
- * If the tables were uncached during the initial mapping
- * and cache_enable set the flag we recache the tables.
- */
-
- pte = getpte4m(pagetables_start);
-
- if ((cpuinfo.flags & CPUFLG_CACHEPAGETABLES) != 0 &&
- (pte & SRMMU_PG_C) == 0)
- kvm_recache((caddr_t)pagetables_start,
- atop(pagetables_end - pagetables_start));
- }
-#endif
-}
-
-
-/*
* Map physical addresses into kernel VM.
*/
vaddr_t