Sync with sys/i386/i386/machdep.c revision up to 1.322.
This commit is contained in:
parent
5b87bd54cf
commit
eb5417aa3a
@ -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 @@ cpu_startup(dummy)
|
||||
*/
|
||||
{
|
||||
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 @@ cpu_startup(dummy)
|
||||
|
||||
#if defined(USERCONFIG)
|
||||
userconfig();
|
||||
cninit(); /* the preferred console may have changed */
|
||||
#endif
|
||||
|
||||
printf("avail memory = %d (%dK bytes)\n", ptoa(cnt.v_free_count),
|
||||
|
@ -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 @@ cpu_startup(dummy)
|
||||
*/
|
||||
{
|
||||
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 @@ cpu_startup(dummy)
|
||||
|
||||
#if defined(USERCONFIG)
|
||||
userconfig();
|
||||
cninit(); /* the preferred console may have changed */
|
||||
#endif
|
||||
|
||||
printf("avail memory = %d (%dK bytes)\n", ptoa(cnt.v_free_count),
|
||||
|
Loading…
Reference in New Issue
Block a user