Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch Garbage-collect the VM_MBUF_SIZE constant. Instead...
details: https://anonhg.NetBSD.org/src/rev/886233b976c0
branches: trunk
changeset: 472289:886233b976c0
user: thorpej <thorpej%NetBSD.org@localhost>
date: Mon Apr 26 22:46:44 1999 +0000
description:
Garbage-collect the VM_MBUF_SIZE constant. Instead, use the size
(nmbclusters * mclbytes), so that the right amount of KVA space is
allocated if those variables are patched.
diffstat:
sys/arch/amiga/amiga/machdep.c | 4 ++--
sys/arch/amiga/include/vmparam.h | 3 +--
sys/arch/arm32/arm32/machdep.c | 4 ++--
sys/arch/arm32/include/vmparam.h | 3 +--
sys/arch/atari/atari/machdep.c | 4 ++--
sys/arch/atari/include/vmparam.h | 3 +--
sys/arch/hp300/hp300/machdep.c | 4 ++--
sys/arch/hp300/include/vmparam.h | 3 +--
sys/arch/i386/i386/machdep.c | 4 ++--
sys/arch/i386/include/vmparam.h | 3 +--
sys/arch/mac68k/include/vmparam.h | 3 +--
sys/arch/mac68k/mac68k/machdep.c | 4 ++--
sys/arch/mvme68k/include/vmparam.h | 3 +--
sys/arch/mvme68k/mvme68k/machdep.c | 4 ++--
sys/arch/next68k/include/vmparam.h | 3 +--
sys/arch/next68k/next68k/machdep.c | 4 ++--
sys/arch/pc532/include/vmparam.h | 3 +--
sys/arch/pc532/pc532/machdep.c | 4 ++--
sys/arch/sparc/include/vmparam.h | 3 +--
sys/arch/sparc/sparc/machdep.c | 4 ++--
sys/arch/sparc64/include/vmparam.h | 3 +--
sys/arch/sparc64/sparc64/machdep.c | 4 ++--
sys/arch/sun3/include/vmparam3.h | 3 +--
sys/arch/sun3/include/vmparam3x.h | 3 +--
sys/arch/sun3/sun3/machdep.c | 4 ++--
sys/arch/sun3/sun3x/machdep.c | 4 ++--
sys/arch/x68k/include/vmparam.h | 3 +--
sys/arch/x68k/x68k/machdep.c | 4 ++--
28 files changed, 42 insertions(+), 56 deletions(-)
diffs (truncated from 490 to 300 lines):
diff -r 2f696d2e08ad -r 886233b976c0 sys/arch/amiga/amiga/machdep.c
--- a/sys/arch/amiga/amiga/machdep.c Mon Apr 26 22:13:52 1999 +0000
+++ b/sys/arch/amiga/amiga/machdep.c Mon Apr 26 22:46:44 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.134 1999/04/11 04:04:05 chs Exp $ */
+/* $NetBSD: machdep.c,v 1.135 1999/04/26 22:46:44 thorpej Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -439,7 +439,7 @@
* Finally, allocate mbuf cluster submap.
*/
mb_map = uvm_km_suballoc(kernel_map, &minaddr, &maxaddr,
- VM_MBUF_SIZE, FALSE, FALSE, NULL);
+ nmbclusters * mclbytes, FALSE, FALSE, NULL);
/*
* Initialize callouts
diff -r 2f696d2e08ad -r 886233b976c0 sys/arch/amiga/include/vmparam.h
--- a/sys/arch/amiga/include/vmparam.h Mon Apr 26 22:13:52 1999 +0000
+++ b/sys/arch/amiga/include/vmparam.h Mon Apr 26 22:46:44 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vmparam.h,v 1.20 1998/10/02 19:29:49 is Exp $ */
+/* $NetBSD: vmparam.h,v 1.21 1999/04/26 22:46:44 thorpej Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -152,7 +152,6 @@
/*
* virtual sizes (bytes) for various kernel submaps
*/
-#define VM_MBUF_SIZE (NMBCLUSTERS*MCLBYTES)
#define VM_KMEM_SIZE (NKMEMCLUSTERS*CLBYTES)
#define VM_PHYS_SIZE (USRIOSIZE*CLBYTES)
diff -r 2f696d2e08ad -r 886233b976c0 sys/arch/arm32/arm32/machdep.c
--- a/sys/arch/arm32/arm32/machdep.c Mon Apr 26 22:13:52 1999 +0000
+++ b/sys/arch/arm32/arm32/machdep.c Mon Apr 26 22:46:44 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.66 1999/04/11 04:04:05 chs Exp $ */
+/* $NetBSD: machdep.c,v 1.67 1999/04/26 22:46:44 thorpej Exp $ */
/*
* Copyright (c) 1994-1998 Mark Brinicombe.
@@ -479,7 +479,7 @@
* Finally, allocate mbuf cluster submap.
*/
mb_map = uvm_km_suballoc(kernel_map, &minaddr, &maxaddr,
- VM_MBUF_SIZE, FALSE, FALSE, NULL);
+ nmbclusters * mclbytes, FALSE, FALSE, NULL);
/*
* Initialise callouts
diff -r 2f696d2e08ad -r 886233b976c0 sys/arch/arm32/include/vmparam.h
--- a/sys/arch/arm32/include/vmparam.h Mon Apr 26 22:13:52 1999 +0000
+++ b/sys/arch/arm32/include/vmparam.h Mon Apr 26 22:46:44 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vmparam.h,v 1.14 1999/03/23 19:16:03 mycroft Exp $ */
+/* $NetBSD: vmparam.h,v 1.15 1999/04/26 22:46:45 thorpej Exp $ */
/*
* Copyright (c) 1988 The Regents of the University of California.
@@ -128,7 +128,6 @@
/* virtual sizes (bytes) for various kernel submaps */
-#define VM_MBUF_SIZE (NMBCLUSTERS*MCLBYTES)
#define VM_KMEM_SIZE (NKMEMCLUSTERS*CLBYTES)
#define VM_PHYS_SIZE (USRIOSIZE*CLBYTES)
diff -r 2f696d2e08ad -r 886233b976c0 sys/arch/atari/atari/machdep.c
--- a/sys/arch/atari/atari/machdep.c Mon Apr 26 22:13:52 1999 +0000
+++ b/sys/arch/atari/atari/machdep.c Mon Apr 26 22:46:44 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.80 1999/04/11 04:04:06 chs Exp $ */
+/* $NetBSD: machdep.c,v 1.81 1999/04/26 22:46:45 thorpej Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -377,7 +377,7 @@
* Finally, allocate mbuf cluster submap.
*/
mb_map = uvm_km_suballoc(kernel_map, &minaddr, &maxaddr,
- VM_MBUF_SIZE, FALSE, FALSE, NULL);
+ nmbclusters * mclbytes, FALSE, FALSE, NULL);
/*
* Tell the VM system that page 0 isn't mapped.
diff -r 2f696d2e08ad -r 886233b976c0 sys/arch/atari/include/vmparam.h
--- a/sys/arch/atari/include/vmparam.h Mon Apr 26 22:13:52 1999 +0000
+++ b/sys/arch/atari/include/vmparam.h Mon Apr 26 22:46:44 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vmparam.h,v 1.9 1999/03/03 16:25:01 leo Exp $ */
+/* $NetBSD: vmparam.h,v 1.10 1999/04/26 22:46:45 thorpej Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -151,7 +151,6 @@
/*
* virtual sizes (bytes) for various kernel submaps
*/
-#define VM_MBUF_SIZE (NMBCLUSTERS*MCLBYTES)
#define VM_KMEM_SIZE (NKMEMCLUSTERS*CLBYTES)
#define VM_PHYS_SIZE (USRIOSIZE*CLBYTES)
diff -r 2f696d2e08ad -r 886233b976c0 sys/arch/hp300/hp300/machdep.c
--- a/sys/arch/hp300/hp300/machdep.c Mon Apr 26 22:13:52 1999 +0000
+++ b/sys/arch/hp300/hp300/machdep.c Mon Apr 26 22:46:44 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.124 1999/04/25 02:56:27 simonb Exp $ */
+/* $NetBSD: machdep.c,v 1.125 1999/04/26 22:46:45 thorpej Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -381,7 +381,7 @@
* Finally, allocate mbuf cluster submap.
*/
mb_map = uvm_km_suballoc(kernel_map, &minaddr, &maxaddr,
- VM_MBUF_SIZE, FALSE, FALSE, NULL);
+ nmbclusters * mclbytes, FALSE, FALSE, NULL);
/*
* Initialize callouts
diff -r 2f696d2e08ad -r 886233b976c0 sys/arch/hp300/include/vmparam.h
--- a/sys/arch/hp300/include/vmparam.h Mon Apr 26 22:13:52 1999 +0000
+++ b/sys/arch/hp300/include/vmparam.h Mon Apr 26 22:46:44 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vmparam.h,v 1.17 1999/01/16 20:13:42 chuck Exp $ */
+/* $NetBSD: vmparam.h,v 1.18 1999/04/26 22:46:45 thorpej Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -236,7 +236,6 @@
#define VM_MAX_KERNEL_ADDRESS ((vaddr_t)0xFFFFF000)
/* virtual sizes (bytes) for various kernel submaps */
-#define VM_MBUF_SIZE (NMBCLUSTERS*MCLBYTES)
#define VM_KMEM_SIZE (NKMEMCLUSTERS*CLBYTES)
#define VM_PHYS_SIZE (USRIOSIZE*CLBYTES)
diff -r 2f696d2e08ad -r 886233b976c0 sys/arch/i386/i386/machdep.c
--- a/sys/arch/i386/i386/machdep.c Mon Apr 26 22:13:52 1999 +0000
+++ b/sys/arch/i386/i386/machdep.c Mon Apr 26 22:46:44 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.351 1999/04/25 02:56:27 simonb Exp $ */
+/* $NetBSD: machdep.c,v 1.352 1999/04/26 22:46:45 thorpej Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -483,7 +483,7 @@
* Finally, allocate mbuf cluster submap.
*/
mb_map = uvm_km_suballoc(kernel_map, &minaddr, &maxaddr,
- VM_MBUF_SIZE, FALSE, FALSE, NULL);
+ nmbclusters * mclbytes, FALSE, FALSE, NULL);
/*
* Initialize callouts
diff -r 2f696d2e08ad -r 886233b976c0 sys/arch/i386/include/vmparam.h
--- a/sys/arch/i386/include/vmparam.h Mon Apr 26 22:13:52 1999 +0000
+++ b/sys/arch/i386/include/vmparam.h Mon Apr 26 22:46:44 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vmparam.h,v 1.30 1999/01/16 20:30:35 chuck Exp $ */
+/* $NetBSD: vmparam.h,v 1.31 1999/04/26 22:46:46 thorpej Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -147,7 +147,6 @@
#endif
/* virtual sizes (bytes) for various kernel submaps */
-#define VM_MBUF_SIZE (NMBCLUSTERS*MCLBYTES)
#define VM_KMEM_SIZE (NKMEMCLUSTERS*CLBYTES)
#define VM_PHYS_SIZE (USRIOSIZE*CLBYTES)
diff -r 2f696d2e08ad -r 886233b976c0 sys/arch/mac68k/include/vmparam.h
--- a/sys/arch/mac68k/include/vmparam.h Mon Apr 26 22:13:52 1999 +0000
+++ b/sys/arch/mac68k/include/vmparam.h Mon Apr 26 22:46:44 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vmparam.h,v 1.21 1999/04/07 06:45:14 scottr Exp $ */
+/* $NetBSD: vmparam.h,v 1.22 1999/04/26 22:46:46 thorpej Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -252,7 +252,6 @@
#define VM_MAX_KERNEL_ADDRESS ((vaddr_t)(0-NBPG))
/* virtual sizes (bytes) for various kernel submaps */
-#define VM_MBUF_SIZE (NMBCLUSTERS*MCLBYTES)
#define VM_KMEM_SIZE (NKMEMCLUSTERS*CLBYTES)
#define VM_PHYS_SIZE (USRIOSIZE*CLBYTES)
diff -r 2f696d2e08ad -r 886233b976c0 sys/arch/mac68k/mac68k/machdep.c
--- a/sys/arch/mac68k/mac68k/machdep.c Mon Apr 26 22:13:52 1999 +0000
+++ b/sys/arch/mac68k/mac68k/machdep.c Mon Apr 26 22:46:44 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.230 1999/04/25 02:56:28 simonb Exp $ */
+/* $NetBSD: machdep.c,v 1.231 1999/04/26 22:46:46 thorpej Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -545,7 +545,7 @@
* Finally, allocate mbuf cluster submap.
*/
mb_map = uvm_km_suballoc(kernel_map, &minaddr, &maxaddr,
- VM_MBUF_SIZE, FALSE, FALSE, NULL);
+ nmbclusters * mclbytes, FALSE, FALSE, NULL);
/*
* Initialize callouts
diff -r 2f696d2e08ad -r 886233b976c0 sys/arch/mvme68k/include/vmparam.h
--- a/sys/arch/mvme68k/include/vmparam.h Mon Apr 26 22:13:52 1999 +0000
+++ b/sys/arch/mvme68k/include/vmparam.h Mon Apr 26 22:46:44 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vmparam.h,v 1.10 1999/01/16 20:32:59 chuck Exp $ */
+/* $NetBSD: vmparam.h,v 1.11 1999/04/26 22:46:46 thorpej Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -226,7 +226,6 @@
#define VM_MAX_KERNEL_ADDRESS ((vaddr_t)0xFFFFF000)
/* virtual sizes (bytes) for various kernel submaps */
-#define VM_MBUF_SIZE (NMBCLUSTERS*MCLBYTES)
#define VM_KMEM_SIZE (NKMEMCLUSTERS*CLBYTES)
#define VM_PHYS_SIZE (USRIOSIZE*CLBYTES)
diff -r 2f696d2e08ad -r 886233b976c0 sys/arch/mvme68k/mvme68k/machdep.c
--- a/sys/arch/mvme68k/mvme68k/machdep.c Mon Apr 26 22:13:52 1999 +0000
+++ b/sys/arch/mvme68k/mvme68k/machdep.c Mon Apr 26 22:46:44 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.54 1999/04/25 02:56:28 simonb Exp $ */
+/* $NetBSD: machdep.c,v 1.55 1999/04/26 22:46:47 thorpej Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -479,7 +479,7 @@
* Finally, allocate mbuf cluster submap.
*/
mb_map = uvm_km_suballoc(kernel_map, &minaddr, &maxaddr,
- VM_MBUF_SIZE, FALSE, FALSE, NULL);
+ nmbclusters * mclbytes, FALSE, FALSE, NULL);
/*
* Initialize callouts
diff -r 2f696d2e08ad -r 886233b976c0 sys/arch/next68k/include/vmparam.h
--- a/sys/arch/next68k/include/vmparam.h Mon Apr 26 22:13:52 1999 +0000
+++ b/sys/arch/next68k/include/vmparam.h Mon Apr 26 22:46:44 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vmparam.h,v 1.4 1999/01/16 20:33:38 chuck Exp $ */
+/* $NetBSD: vmparam.h,v 1.5 1999/04/26 22:46:47 thorpej Exp $ */
/*
* This file was taken from from mvme68k/include/vmparam.h and
@@ -233,7 +233,6 @@
#define VM_MAX_KERNEL_ADDRESS ((vaddr_t)0xFFFFF000)
/* virtual sizes (bytes) for various kernel submaps */
-#define VM_MBUF_SIZE (NMBCLUSTERS*MCLBYTES)
#define VM_KMEM_SIZE (NKMEMCLUSTERS*CLBYTES)
#define VM_PHYS_SIZE (USRIOSIZE*CLBYTES)
diff -r 2f696d2e08ad -r 886233b976c0 sys/arch/next68k/next68k/machdep.c
--- a/sys/arch/next68k/next68k/machdep.c Mon Apr 26 22:13:52 1999 +0000
+++ b/sys/arch/next68k/next68k/machdep.c Mon Apr 26 22:46:44 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.21 1999/04/25 02:56:29 simonb Exp $ */
+/* $NetBSD: machdep.c,v 1.22 1999/04/26 22:46:47 thorpej Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -421,7 +421,7 @@
* Finally, allocate mbuf cluster submap.
*/
mb_map = uvm_km_suballoc(kernel_map, &minaddr, &maxaddr,
- VM_MBUF_SIZE, FALSE, FALSE, NULL);
+ nmbclusters * mclbytes, FALSE, FALSE, NULL);
/*
* Initialize callouts
diff -r 2f696d2e08ad -r 886233b976c0 sys/arch/pc532/include/vmparam.h
--- a/sys/arch/pc532/include/vmparam.h Mon Apr 26 22:13:52 1999 +0000
+++ b/sys/arch/pc532/include/vmparam.h Mon Apr 26 22:46:44 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vmparam.h,v 1.16 1999/01/16 20:39:03 chuck Exp $ */
+/* $NetBSD: vmparam.h,v 1.17 1999/04/26 22:46:47 thorpej Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -155,7 +155,6 @@
#endif
/* virtual sizes (bytes) for various kernel submaps */
-#define VM_MBUF_SIZE (NMBCLUSTERS*MCLBYTES)
#define VM_KMEM_SIZE (NKMEMCLUSTERS*CLBYTES)
#define VM_PHYS_SIZE (USRIOSIZE*CLBYTES)
diff -r 2f696d2e08ad -r 886233b976c0 sys/arch/pc532/pc532/machdep.c
--- a/sys/arch/pc532/pc532/machdep.c Mon Apr 26 22:13:52 1999 +0000
+++ b/sys/arch/pc532/pc532/machdep.c Mon Apr 26 22:46:44 1999 +0000
Home |
Main Index |
Thread Index |
Old Index