diff options
| author | thorpej <thorpej@NetBSD.org> | 1999-04-26 22:46:44 +0000 |
|---|---|---|
| committer | thorpej <thorpej@NetBSD.org> | 1999-04-26 22:46:44 +0000 |
| commit | b8073b401b79df2ebb2fd18feb98cb4be5b9bb0d (patch) | |
| tree | e797dfb9a7218fb332053b109a8f00221b6e183f /sys/arch/atari | |
| parent | 44ee87006e661699b5be59a700f61784deada579 (diff) | |
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 (limited to 'sys/arch/atari')
| -rw-r--r-- | sys/arch/atari/atari/machdep.c | 4 | ||||
| -rw-r--r-- | sys/arch/atari/include/vmparam.h | 3 |
2 files changed, 3 insertions, 4 deletions
diff --git a/sys/arch/atari/atari/machdep.c b/sys/arch/atari/atari/machdep.c index 13dabffdfd0..f8aee9f3eb5 100644 --- a/sys/arch/atari/atari/machdep.c +++ b/sys/arch/atari/atari/machdep.c @@ -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 @@ again: * 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 --git a/sys/arch/atari/include/vmparam.h b/sys/arch/atari/include/vmparam.h index 56ab30f76c8..42dc37cd8c9 100644 --- a/sys/arch/atari/include/vmparam.h +++ b/sys/arch/atari/include/vmparam.h @@ -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) |
