Source-Changes-HG archive

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

[src/trunk]: src/sys/arch Now that we have direct-mapped pool pages, we can g...



details:   https://anonhg.NetBSD.org/src/rev/26aeaf14c6d5
branches:  trunk
changeset: 471976:26aeaf14c6d5
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Fri Apr 16 21:47:11 1999 +0000

description:
Now that we have direct-mapped pool pages, we can garbage-collect VM_MBUF_SIZE
and don't need to allocate mb_map.

diffstat:

 sys/arch/bebox/bebox/machdep.c    |  8 ++++----
 sys/arch/bebox/include/vmparam.h  |  3 +--
 sys/arch/macppc/include/vmparam.h |  3 +--
 sys/arch/macppc/macppc/machdep.c  |  8 ++++----
 sys/arch/ofppc/include/vmparam.h  |  3 +--
 sys/arch/ofppc/ofppc/machdep.c    |  8 ++++----
 6 files changed, 15 insertions(+), 18 deletions(-)

diffs (120 lines):

diff -r 2956dc0f7145 -r 26aeaf14c6d5 sys/arch/bebox/bebox/machdep.c
--- a/sys/arch/bebox/bebox/machdep.c    Fri Apr 16 21:45:19 1999 +0000
+++ b/sys/arch/bebox/bebox/machdep.c    Fri Apr 16 21:47:11 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.34 1999/04/11 04:04:06 chs Exp $ */
+/*     $NetBSD: machdep.c,v 1.35 1999/04/16 21:47:11 thorpej Exp $     */
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -541,10 +541,10 @@
                                 VM_PHYS_SIZE, TRUE, FALSE, NULL);
 
        /*
-        * Finally, allocate mbuf cluster submap.
+        * No need to allocate an mbuf cluster submap.  Mbuf clusters
+        * are allocated via the pool allocator, and we use direct-mapped
+        * pool pages.
         */
-       mb_map = uvm_km_suballoc(kernel_map, &minaddr, &maxaddr,
-                              VM_MBUF_SIZE, FALSE, FALSE, NULL);
 
        /*
         * Initialize callouts.
diff -r 2956dc0f7145 -r 26aeaf14c6d5 sys/arch/bebox/include/vmparam.h
--- a/sys/arch/bebox/include/vmparam.h  Fri Apr 16 21:45:19 1999 +0000
+++ b/sys/arch/bebox/include/vmparam.h  Fri Apr 16 21:47:11 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vmparam.h,v 1.7 1999/03/23 00:31:59 thorpej Exp $      */
+/*     $NetBSD: vmparam.h,v 1.8 1999/04/16 21:47:11 thorpej Exp $      */
 
 /*-
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -90,7 +90,6 @@
 #define        VM_MAX_KERNEL_ADDRESS   (VM_MIN_KERNEL_ADDRESS + SEGMENT_LENGTH - 1)
 
 #define        VM_KMEM_SIZE            (NKMEMCLUSTERS * CLBYTES)
-#define        VM_MBUF_SIZE            (NMBCLUSTERS * MCLBYTES)
 #define        VM_PHYS_SIZE            (USRIOSIZE * CLBYTES)
 
 struct pmap_physseg {
diff -r 2956dc0f7145 -r 26aeaf14c6d5 sys/arch/macppc/include/vmparam.h
--- a/sys/arch/macppc/include/vmparam.h Fri Apr 16 21:45:19 1999 +0000
+++ b/sys/arch/macppc/include/vmparam.h Fri Apr 16 21:47:11 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vmparam.h,v 1.7 1999/03/23 00:32:00 thorpej Exp $      */
+/*     $NetBSD: vmparam.h,v 1.8 1999/04/16 21:47:12 thorpej Exp $      */
 
 /*-
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -90,7 +90,6 @@
 #define        VM_MAX_KERNEL_ADDRESS   (VM_MIN_KERNEL_ADDRESS + SEGMENT_LENGTH - 1)
 
 #define        VM_KMEM_SIZE            (NKMEMCLUSTERS * CLBYTES)
-#define        VM_MBUF_SIZE            (NMBCLUSTERS * MCLBYTES)
 #define        VM_PHYS_SIZE            (USRIOSIZE * CLBYTES)
 
 struct pmap_physseg {
diff -r 2956dc0f7145 -r 26aeaf14c6d5 sys/arch/macppc/macppc/machdep.c
--- a/sys/arch/macppc/macppc/machdep.c  Fri Apr 16 21:45:19 1999 +0000
+++ b/sys/arch/macppc/macppc/machdep.c  Fri Apr 16 21:47:11 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.39 1999/04/11 04:04:08 chs Exp $ */
+/*     $NetBSD: machdep.c,v 1.40 1999/04/16 21:47:12 thorpej Exp $     */
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -550,10 +550,10 @@
                                 VM_PHYS_SIZE, TRUE, FALSE, NULL);
 
        /*
-        * Finally, allocate mbuf cluster submap.
+        * No need to allocate an mbuf cluster submap.  Mbuf clusters
+        * are allocated via the pool allocator, and we use direct-mapped
+        * pool pages.
         */
-       mb_map = uvm_km_suballoc(kernel_map, &minaddr, &maxaddr,
-                              VM_MBUF_SIZE, FALSE, FALSE, NULL);
 
        /*
         * Initialize callouts.
diff -r 2956dc0f7145 -r 26aeaf14c6d5 sys/arch/ofppc/include/vmparam.h
--- a/sys/arch/ofppc/include/vmparam.h  Fri Apr 16 21:45:19 1999 +0000
+++ b/sys/arch/ofppc/include/vmparam.h  Fri Apr 16 21:47:11 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vmparam.h,v 1.8 1999/03/23 00:32:00 thorpej Exp $      */
+/*     $NetBSD: vmparam.h,v 1.9 1999/04/16 21:47:12 thorpej Exp $      */
 
 /*-
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -90,7 +90,6 @@
 #define        VM_MAX_KERNEL_ADDRESS   (VM_MIN_KERNEL_ADDRESS + SEGMENT_LENGTH - 1)
 
 #define        VM_KMEM_SIZE            (NKMEMCLUSTERS * CLBYTES)
-#define        VM_MBUF_SIZE            (NMBCLUSTERS * MCLBYTES)
 #define        VM_PHYS_SIZE            (USRIOSIZE * CLBYTES)
 
 struct pmap_physseg {
diff -r 2956dc0f7145 -r 26aeaf14c6d5 sys/arch/ofppc/ofppc/machdep.c
--- a/sys/arch/ofppc/ofppc/machdep.c    Fri Apr 16 21:45:19 1999 +0000
+++ b/sys/arch/ofppc/ofppc/machdep.c    Fri Apr 16 21:47:11 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.36 1999/04/11 04:04:08 chs Exp $ */
+/*     $NetBSD: machdep.c,v 1.37 1999/04/16 21:47:12 thorpej Exp $     */
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -455,10 +455,10 @@
                                 VM_PHYS_SIZE, TRUE, FALSE, NULL);
 
        /*
-        * Finally, allocate mbuf cluster submap.
+        * No need to allocate an mbuf cluster submap.  Mbuf clusters
+        * are allocated via the pool allocator, and we use direct-mapped
+        * pool pages.
         */
-       mb_map = uvm_km_suballoc(kernel_map, &minaddr, &maxaddr,
-                              VM_MBUF_SIZE, FALSE, FALSE, NULL);
 
        /*
         * Initialize callouts.



Home | Main Index | Thread Index | Old Index