Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/vax Use the pool allocator for mbufs instead of a s...



details:   https://anonhg.NetBSD.org/src/rev/0f5b11a281e4
branches:  trunk
changeset: 471913:0f5b11a281e4
user:      ragge <ragge%NetBSD.org@localhost>
date:      Wed Apr 14 23:42:00 1999 +0000

description:
Use the pool allocator for mbufs instead of a separate submap.

diffstat:

 sys/arch/vax/include/pmap.h |  9 ++++++++-
 sys/arch/vax/vax/machdep.c  |  8 +-------
 2 files changed, 9 insertions(+), 8 deletions(-)

diffs (45 lines):

diff -r fca6ba6f4f59 -r 0f5b11a281e4 sys/arch/vax/include/pmap.h
--- a/sys/arch/vax/include/pmap.h       Wed Apr 14 23:28:31 1999 +0000
+++ b/sys/arch/vax/include/pmap.h       Wed Apr 14 23:42:00 1999 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: pmap.h,v 1.32 1999/03/24 05:51:16 mrg Exp $     */
+/*      $NetBSD: pmap.h,v 1.33 1999/04/14 23:42:00 ragge Exp $     */
 
 /* 
  * Copyright (c) 1987 Carnegie-Mellon University
@@ -101,6 +101,13 @@
 
 #endif /* _KERNEL */
 
+/*
+ * Real nice (fast) routines to get the virtual address of a physical page
+ * (and vice versa).
+ */
+#define        PMAP_MAP_POOLPAGE(pa)   ((pa) | KERNBASE)
+#define PMAP_UNMAP_POOLPAGE(va)        ((va) & ~KERNBASE)
+
 /* Routines that are best to define as macros */
 #define        pmap_phys_address(phys)         ((u_int)(phys) << PGSHIFT)
 #define        pmap_pageable(a,b,c,d)          /* Dont do anything */
diff -r fca6ba6f4f59 -r 0f5b11a281e4 sys/arch/vax/vax/machdep.c
--- a/sys/arch/vax/vax/machdep.c        Wed Apr 14 23:28:31 1999 +0000
+++ b/sys/arch/vax/vax/machdep.c        Wed Apr 14 23:42:00 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.77 1999/04/11 04:04:10 chs Exp $      */
+/* $NetBSD: machdep.c,v 1.78 1999/04/14 23:42:00 ragge Exp $    */
 
 /*
  * Copyright (c) 1994, 1998 Ludd, University of Lule}, Sweden.
@@ -275,12 +275,6 @@
        exec_map = uvm_km_suballoc(kernel_map, &minaddr, &maxaddr,
                                 16 * NCARGS, TRUE, FALSE, NULL);
 
-       /*
-        * Finally, allocate mbuf cluster submap.
-        */
-       mb_map = uvm_km_suballoc(kernel_map, &minaddr, &maxaddr,
-                              VM_MBUF_SIZE, FALSE, FALSE, NULL);
-
 #if VAX410 || VAX43
        /*
         * Allocate a submap for physio



Home | Main Index | Thread Index | Old Index