summaryrefslogtreecommitdiff
path: root/sys/kern/subr_param.c
diff options
context:
space:
mode:
authorGarrett Wollman <wollman@FreeBSD.org>1996-05-10 19:28:55 +0000
committerGarrett Wollman <wollman@FreeBSD.org>1996-05-10 19:28:55 +0000
commitcb7545a995cef590cc07723aaedb1228b2ef51a9 (patch)
treefab5023c844a9f8148e7c028b3bd0bc0cb934ed5 /sys/kern/subr_param.c
parentebf0ec62f55da1d86d1df63299a1c31e499e697b (diff)
Notes
Diffstat (limited to 'sys/kern/subr_param.c')
-rw-r--r--sys/kern/subr_param.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/sys/kern/subr_param.c b/sys/kern/subr_param.c
index da221c8cf959..f86e7496bc7c 100644
--- a/sys/kern/subr_param.c
+++ b/sys/kern/subr_param.c
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)param.c 8.3 (Berkeley) 8/20/94
- * $Id: param.c,v 1.17 1996/05/02 10:42:51 phk Exp $
+ * $Id: param.c,v 1.18 1996/05/02 14:19:18 phk Exp $
*/
#include "opt_sysvipc.h"
@@ -91,10 +91,12 @@ int ncallout = 16 + NPROC; /* maximum # of timer events */
/* maximum # of mbuf clusters */
#ifndef NMBCLUSTERS
-int nmbclusters = 512 + MAXUSERS * 16;
-#else
-int nmbclusters = NMBCLUSTERS;
+#define NMBCLUSTERS (512 + MAXUSERS * 16)
#endif
+int nmbclusters = NMBCLUSTERS;
+
+/* allocate same amount of virtual address space for mbufs XXX */
+int nmbufs = NMBCLUSTERS * (MCLBYTES / MSIZE);
int fscale = FSCALE; /* kernel uses `FSCALE', user uses `fscale' */