summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2003-04-06 22:50:38 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2003-04-06 22:50:38 +0000
commit7fb6f7662dff3aac1f5a5371ae29e20ecf2a95f6 (patch)
tree38ff3faf76d88a8f430524ee29e49401bf5d66ae
parentf8d4316164530403cb1b793852c25f2a5c3c9196 (diff)
kvm_iocache() is not used anymore.
-rw-r--r--sys/arch/sparc/sparc/pmap.c30
1 files changed, 1 insertions, 29 deletions
diff --git a/sys/arch/sparc/sparc/pmap.c b/sys/arch/sparc/sparc/pmap.c
index 651f14eb555..2488c7d087e 100644
--- a/sys/arch/sparc/sparc/pmap.c
+++ b/sys/arch/sparc/sparc/pmap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.c,v 1.133 2003/03/13 22:09:20 miod Exp $ */
+/* $OpenBSD: pmap.c,v 1.134 2003/04/06 22:50:37 miod Exp $ */
/* $NetBSD: pmap.c,v 1.118 1998/05/19 19:00:18 thorpej Exp $ */
/*
@@ -738,7 +738,6 @@ static void sortm(struct memarr *, int);
void ctx_alloc(struct pmap *);
void ctx_free(struct pmap *);
void pg_flushcache(struct vm_page *);
-void kvm_iocache(caddr_t, int);
#ifdef DEBUG
void pm_check(char *, struct pmap *);
void pm_check_k(char *, struct pmap *);
@@ -6125,33 +6124,6 @@ kvm_setcache(va, npages, cached)
}
}
-/*
- * Turn on IO cache for a given (va, number of pages).
- *
- * We just assert PG_NC for each PTE; the addresses must reside
- * in locked kernel space. A cache flush is also done.
- */
-void
-kvm_iocache(va, npages)
- caddr_t va;
- int npages;
-{
-
-#ifdef SUN4M
- if (CPU_ISSUN4M) /* %%%: Implement! */
- panic("kvm_iocache: 4m iocache not implemented");
-#endif
-#if defined(SUN4) || defined(SUN4C)
- for (; --npages >= 0; va += NBPG) {
- int pte = getpte4(va);
- if ((pte & PG_V) == 0)
- panic("kvm_iocache !pg_v");
- pte |= PG_IOC;
- setpte4(va, pte);
- }
-#endif
-}
-
int
pmap_count_ptes(pm)
struct pmap *pm;