Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/powerpc/include Use the same hack as pmap_zero_page...



details:   https://anonhg.NetBSD.org/src/rev/2956dc0f7145
branches:  trunk
changeset: 471975:2956dc0f7145
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Fri Apr 16 21:45:19 1999 +0000

description:
Use the same hack as pmap_zero_page() and pmap_copy_page() to provide
direct-mapped pool pages.

diffstat:

 sys/arch/powerpc/include/pmap.h |  12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diffs (26 lines):

diff -r 1a49e2e95ef3 -r 2956dc0f7145 sys/arch/powerpc/include/pmap.h
--- a/sys/arch/powerpc/include/pmap.h   Fri Apr 16 21:29:47 1999 +0000
+++ b/sys/arch/powerpc/include/pmap.h   Fri Apr 16 21:45:19 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.h,v 1.11 1999/03/05 06:10:48 tsubai Exp $ */
+/*     $NetBSD: pmap.h,v 1.12 1999/04/16 21:45:19 thorpej Exp $        */
 
 /*-
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -81,6 +81,16 @@
 #define PMAP_NEED_PROCWR
 void pmap_procwr __P((struct proc *, vaddr_t, size_t));
 
+/*
+ * Alternate mapping hooks for pool pages.  Avoids thrashing the TLB.
+ *
+ * Note: This won't work if we have more memory than can be direct-mapped
+ * VA==PA all at once.  But pmap_copy_page() and pmap_zero_page() will have
+ * this problem, too.
+ */
+#define        PMAP_MAP_POOLPAGE(pa)   (pa)
+#define        PMAP_UNMAP_POOLPAGE(pa) (pa)
+
 static __inline paddr_t
 vtophys(va)
        vaddr_t va;



Home | Main Index | Thread Index | Old Index