aboutsummaryrefslogtreecommitdiff
path: root/sys/pc98
diff options
context:
space:
mode:
authorKATO Takenori <kato@FreeBSD.org>1999-01-16 11:38:03 +0000
committerKATO Takenori <kato@FreeBSD.org>1999-01-16 11:38:03 +0000
commiteb5417aa3a6178ea1597ed437dd5b099ed4151be (patch)
tree6eb5b1127119ed6515b64d2d76e4357387e82b34 /sys/pc98
parent5b87bd54cfd1dfc117e32b1bb1fd5a349dbd1a48 (diff)
Notes
Diffstat (limited to 'sys/pc98')
-rw-r--r--sys/pc98/i386/machdep.c9
-rw-r--r--sys/pc98/pc98/machdep.c9
2 files changed, 16 insertions, 2 deletions
diff --git a/sys/pc98/i386/machdep.c b/sys/pc98/i386/machdep.c
index 3cee3016660f..91095587ab6e 100644
--- a/sys/pc98/i386/machdep.c
+++ b/sys/pc98/i386/machdep.c
@@ -35,7 +35,7 @@
* SUCH DAMAGE.
*
* from: @(#)machdep.c 7.4 (Berkeley) 6/3/91
- * $Id: machdep.c,v 1.103 1998/12/16 16:28:57 bde Exp $
+ * $Id: machdep.c,v 1.104 1999/01/08 16:04:20 kato Exp $
*/
#include "apm.h"
@@ -423,6 +423,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));
@@ -447,6 +453,7 @@ again:
#if defined(USERCONFIG)
userconfig();
+ cninit(); /* the preferred console may have changed */
#endif
printf("avail memory = %d (%dK bytes)\n", ptoa(cnt.v_free_count),
diff --git a/sys/pc98/pc98/machdep.c b/sys/pc98/pc98/machdep.c
index 3cee3016660f..91095587ab6e 100644
--- a/sys/pc98/pc98/machdep.c
+++ b/sys/pc98/pc98/machdep.c
@@ -35,7 +35,7 @@
* SUCH DAMAGE.
*
* from: @(#)machdep.c 7.4 (Berkeley) 6/3/91
- * $Id: machdep.c,v 1.103 1998/12/16 16:28:57 bde Exp $
+ * $Id: machdep.c,v 1.104 1999/01/08 16:04:20 kato Exp $
*/
#include "apm.h"
@@ -423,6 +423,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));
@@ -447,6 +453,7 @@ again:
#if defined(USERCONFIG)
userconfig();
+ cninit(); /* the preferred console may have changed */
#endif
printf("avail memory = %d (%dK bytes)\n", ptoa(cnt.v_free_count),