From a07089226dc4e0d6600a659e9e1c4a4ac1a15e51 Mon Sep 17 00:00:00 2001 From: Mike Smith Date: Fri, 15 Jan 1999 18:00:19 +0000 Subject: [PATCH] Oops, add the NMBCLUSTERS initialiser for the Alpha as well. --- sys/alpha/alpha/machdep.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/sys/alpha/alpha/machdep.c b/sys/alpha/alpha/machdep.c index 64de963593c..5211879cf12 100644 --- a/sys/alpha/alpha/machdep.c +++ b/sys/alpha/alpha/machdep.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: machdep.c,v 1.28 1998/12/23 11:50:50 dfr Exp $ + * $Id: machdep.c,v 1.29 1998/12/30 10:38:58 dfr Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -366,6 +366,12 @@ again: */ { vm_offset_t mb_map_size; + int xclusters; + + /* Allow override of NMBCLUSTERS from the kernel environment */ + if (getenv_int("kern.ipc.nmbclusters", &xclusters) && + xclusters > nmbclusters) + nmbclusters = xclusters; mb_map_size = nmbufs * MSIZE + nmbclusters * MCLBYTES; mb_map_size = roundup2(mb_map_size, max(MCLBYTES, PAGE_SIZE));