xref: /netbsd-src/sys/arch/sun3/include/param3.h (revision ec8d43fcc00dd94274247d29e9ed8cd028be3aa5)
1*ec8d43fcSmrg /*	$NetBSD: param3.h,v 1.57 2018/03/03 03:19:36 mrg Exp $	*/
220af809cScgd 
3c6b347c3Sglass /*
49b6bd2d9Srmind  * Copyright (c) 1988 University of Utah.
5813f1370Sgwr  * Copyright (c) 1982, 1986, 1990, 1993
6813f1370Sgwr  *	The Regents of the University of California.  All rights reserved.
7c6b347c3Sglass  *
8c6b347c3Sglass  * This code is derived from software contributed to Berkeley by
9c6b347c3Sglass  * the Systems Programming Group of the University of Utah Computer
10c6b347c3Sglass  * Science Department.
11c6b347c3Sglass  *
12c6b347c3Sglass  * Redistribution and use in source and binary forms, with or without
13c6b347c3Sglass  * modification, are permitted provided that the following conditions
14c6b347c3Sglass  * are met:
15c6b347c3Sglass  * 1. Redistributions of source code must retain the above copyright
16c6b347c3Sglass  *    notice, this list of conditions and the following disclaimer.
17c6b347c3Sglass  * 2. Redistributions in binary form must reproduce the above copyright
18c6b347c3Sglass  *    notice, this list of conditions and the following disclaimer in the
19c6b347c3Sglass  *    documentation and/or other materials provided with the distribution.
20aad01611Sagc  * 3. Neither the name of the University nor the names of its contributors
21aad01611Sagc  *    may be used to endorse or promote products derived from this software
22aad01611Sagc  *    without specific prior written permission.
23aad01611Sagc  *
24aad01611Sagc  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
25aad01611Sagc  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
26aad01611Sagc  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
27aad01611Sagc  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
28aad01611Sagc  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
29aad01611Sagc  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
30aad01611Sagc  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
31aad01611Sagc  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32aad01611Sagc  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33aad01611Sagc  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34aad01611Sagc  * SUCH DAMAGE.
35aad01611Sagc  *
36aad01611Sagc  *	from: Utah Hdr: machparam.h 1.16 92/12/20
37aad01611Sagc  *	from: @(#)param.h	8.1 (Berkeley) 6/10/93
38aad01611Sagc  */
39c6b347c3Sglass 
40c6b347c3Sglass /*
41399b15ebSgwr  * Machine dependent constants for the Sun3 series.
42c6b347c3Sglass  */
4305b8948cSveego 
448e16588bStsutsui #define	KERNBASE3	0x0E000000	/* start of kernel virtual */
458e16588bStsutsui #define	KERN_END3	0x0FE00000	/* end of kernel virtual */
46f85debecStsutsui 
47f85debecStsutsui /*
48f85debecStsutsui  * Minimum and maximum sizes of the kernel malloc arena in PAGE_SIZE-sized
49f85debecStsutsui  * logical pages.
50f85debecStsutsui  * Note maximum value can't be so large due to limited KVA space as above.
51f85debecStsutsui  */
52f85debecStsutsui #define	NKMEMPAGES_MIN_DEFAULT	((8 * 1024 * 1024) >> PAGE_SHIFT)
53f85debecStsutsui #define	NKMEMPAGES_MAX_DEFAULT	((16 * 1024 * 1024) >> PAGE_SHIFT)
54fc789a37Stsutsui 
55fc789a37Stsutsui /* Use smaller UBC_NWINS to avoid KVA space shortage. */
56*ec8d43fcSmrg #define	UBC_NWINS	128
57*ec8d43fcSmrg #define	MAXEXEC		1
58