xref: /netbsd-src/sys/arch/sun3/include/vmparam3.h (revision ec8d43fcc00dd94274247d29e9ed8cd028be3aa5)
1*ec8d43fcSmrg /*	$NetBSD: vmparam3.h,v 1.39 2018/03/03 03:19:36 mrg Exp $	*/
2aad01611Sagc 
3aad01611Sagc /*
4aad01611Sagc  * Copyright (c) 1982, 1986, 1990 The Regents of the University of California.
5aad01611Sagc  * All rights reserved.
6aad01611Sagc  *
7aad01611Sagc  * This code is derived from software contributed to Berkeley by
8aad01611Sagc  * the Systems Programming Group of the University of Utah Computer
9aad01611Sagc  * Science Department.
10aad01611Sagc  *
11aad01611Sagc  * Redistribution and use in source and binary forms, with or without
12aad01611Sagc  * modification, are permitted provided that the following conditions
13aad01611Sagc  * are met:
14aad01611Sagc  * 1. Redistributions of source code must retain the above copyright
15aad01611Sagc  *    notice, this list of conditions and the following disclaimer.
16aad01611Sagc  * 2. Redistributions in binary form must reproduce the above copyright
17aad01611Sagc  *    notice, this list of conditions and the following disclaimer in the
18aad01611Sagc  *    documentation and/or other materials provided with the distribution.
19aad01611Sagc  * 3. Neither the name of the University nor the names of its contributors
20aad01611Sagc  *    may be used to endorse or promote products derived from this software
21aad01611Sagc  *    without specific prior written permission.
22aad01611Sagc  *
23aad01611Sagc  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
24aad01611Sagc  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25aad01611Sagc  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26aad01611Sagc  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
27aad01611Sagc  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
28aad01611Sagc  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29aad01611Sagc  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30aad01611Sagc  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31aad01611Sagc  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32aad01611Sagc  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33aad01611Sagc  * SUCH DAMAGE.
34aad01611Sagc  *
35aad01611Sagc  *	from: Utah $Hdr: vmparam.h 1.16 91/01/18$
36aad01611Sagc  *	from: @(#)vmparam.h	7.3 (Berkeley) 5/7/91
37aad01611Sagc  *	vmparam.h,v 1.2 1993/05/22 07:58:38 cgd Exp
38aad01611Sagc  */
3920af809cScgd 
40a2133ea2Sglass /*
4159bf96aaSgwr  * Copyright (c) 1994 Gordon W. Ross
42a2133ea2Sglass  * Copyright (c) 1993 Adam Glass
43a2133ea2Sglass  * Copyright (c) 1988 University of Utah.
44a2133ea2Sglass  *
45a2133ea2Sglass  * This code is derived from software contributed to Berkeley by
46a2133ea2Sglass  * the Systems Programming Group of the University of Utah Computer
47a2133ea2Sglass  * Science Department.
48a2133ea2Sglass  *
49a2133ea2Sglass  * Redistribution and use in source and binary forms, with or without
50a2133ea2Sglass  * modification, are permitted provided that the following conditions
51a2133ea2Sglass  * are met:
52a2133ea2Sglass  * 1. Redistributions of source code must retain the above copyright
53a2133ea2Sglass  *    notice, this list of conditions and the following disclaimer.
54a2133ea2Sglass  * 2. Redistributions in binary form must reproduce the above copyright
55a2133ea2Sglass  *    notice, this list of conditions and the following disclaimer in the
56a2133ea2Sglass  *    documentation and/or other materials provided with the distribution.
57a2133ea2Sglass  * 3. All advertising materials mentioning features or use of this software
58a2133ea2Sglass  *    must display the following acknowledgement:
59a2133ea2Sglass  *	This product includes software developed by the University of
60a2133ea2Sglass  *	California, Berkeley and its contributors.
61a2133ea2Sglass  * 4. Neither the name of the University nor the names of its contributors
62a2133ea2Sglass  *    may be used to endorse or promote products derived from this software
63a2133ea2Sglass  *    without specific prior written permission.
64a2133ea2Sglass  *
65a2133ea2Sglass  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
66a2133ea2Sglass  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
67a2133ea2Sglass  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
68a2133ea2Sglass  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
69a2133ea2Sglass  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
70a2133ea2Sglass  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
71a2133ea2Sglass  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
72a2133ea2Sglass  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
73a2133ea2Sglass  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
74a2133ea2Sglass  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
75a2133ea2Sglass  * SUCH DAMAGE.
76a2133ea2Sglass  *
77a2133ea2Sglass  *	from: Utah $Hdr: vmparam.h 1.16 91/01/18$
7859bf96aaSgwr  *	from: @(#)vmparam.h	7.3 (Berkeley) 5/7/91
7959bf96aaSgwr  *	vmparam.h,v 1.2 1993/05/22 07:58:38 cgd Exp
80a2133ea2Sglass  */
81c6b347c3Sglass 
8259bf96aaSgwr /*
833c868e07Sgwr  * Machine dependent constants for Sun3
843c868e07Sgwr  *
853c868e07Sgwr  * The Sun3 has limited total kernel virtual space (32MB) and
863c868e07Sgwr  * can not use main memory for page tables.  (All active PTEs
873c868e07Sgwr  * must be installed in special translation RAM in the MMU).
883c868e07Sgwr  * Therefore, parameters that would normally configure the
893c868e07Sgwr  * size of various page tables are irrelevant.  Only things
903c868e07Sgwr  * that consume portions of kernel virtual (KV) space matter,
913c868e07Sgwr  * and those things should be chosen to conserve KV space.
9259bf96aaSgwr  */
9359bf96aaSgwr 
9459bf96aaSgwr /*
95eff2e270Sgwr  * Virtual memory related constants, all in bytes.
96eff2e270Sgwr  * The Sun3 has only 224 MB of user-virtual space,
97eff2e270Sgwr  * so we need to be conservative with these limits.
98c6b347c3Sglass  */
99c6b347c3Sglass #ifndef MAXTSIZ
1009e3d987aSrin #define	MAXTSIZ		(32*1024*1024)		/* max text size */
101c6b347c3Sglass #endif
102c6b347c3Sglass #ifndef DFLDSIZ
103b2502668Sgwr #define	DFLDSIZ		(16*1024*1024)		/* initial data size limit */
104c6b347c3Sglass #endif
105c6b347c3Sglass #ifndef MAXDSIZ
106dc22f15aSglass #define	MAXDSIZ		(32*1024*1024)		/* max data size */
107c6b347c3Sglass #endif
108c6b347c3Sglass #ifndef	DFLSSIZ
109c6b347c3Sglass #define	DFLSSIZ		(512*1024)		/* initial stack size limit */
110c6b347c3Sglass #endif
111c6b347c3Sglass #ifndef	MAXSSIZ
11259bf96aaSgwr #define	MAXSSIZ		MAXDSIZ			/* max stack size */
113c6b347c3Sglass #endif
114c6b347c3Sglass 
115*ec8d43fcSmrg #define	PAGER_MAP_DEFAULT_SIZE (2 * 1024 * 1024)
116