On sun4c, clip max data & stack size to avoid the MMU hole.
This commit is contained in:
parent
49ecfdf2e4
commit
5957cb9b16
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: machdep.c,v 1.245 2004/03/24 15:34:51 atatat Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.246 2004/04/03 12:38:14 pk Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
|
||||
|
@ -78,7 +78,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.245 2004/03/24 15:34:51 atatat Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.246 2004/04/03 12:38:14 pk Exp $");
|
||||
|
||||
#include "opt_compat_netbsd.h"
|
||||
#include "opt_compat_sunos.h"
|
||||
|
@ -274,6 +274,14 @@ cpu_startup()
|
|||
ubc_nwins = 256;
|
||||
/*ubc_winshift = 12; tune this too? */
|
||||
}
|
||||
|
||||
/* Clip max data & stack to avoid running into the MMU hole */
|
||||
#if MAXDSIZ > 256*1024*1024
|
||||
{ extern rlim_t maxdmap; maxdmap = 256*1024*1024; }
|
||||
#endif
|
||||
#if MAXSSIZ > 256*1024*1024
|
||||
{ extern rlim_t maxsmap; maxsmap = 256*1024*1024; }
|
||||
#endif
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue