Home | History | Annotate | Line # | Download | only in include
vmparam3x.h revision 1.20
      1  1.20  pooka /*	$NetBSD: vmparam3x.h,v 1.20 2010/04/30 13:48:55 pooka Exp $	*/
      2   1.1    gwr 
      3   1.1    gwr /*
      4   1.1    gwr  * Copyright (c) 1982, 1986, 1990 The Regents of the University of California.
      5   1.1    gwr  * All rights reserved.
      6  1.17    agc  *
      7  1.17    agc  * This code is derived from software contributed to Berkeley by
      8  1.17    agc  * the Systems Programming Group of the University of Utah Computer
      9  1.17    agc  * Science Department.
     10  1.17    agc  *
     11  1.17    agc  * Redistribution and use in source and binary forms, with or without
     12  1.17    agc  * modification, are permitted provided that the following conditions
     13  1.17    agc  * are met:
     14  1.17    agc  * 1. Redistributions of source code must retain the above copyright
     15  1.17    agc  *    notice, this list of conditions and the following disclaimer.
     16  1.17    agc  * 2. Redistributions in binary form must reproduce the above copyright
     17  1.17    agc  *    notice, this list of conditions and the following disclaimer in the
     18  1.17    agc  *    documentation and/or other materials provided with the distribution.
     19  1.17    agc  * 3. Neither the name of the University nor the names of its contributors
     20  1.17    agc  *    may be used to endorse or promote products derived from this software
     21  1.17    agc  *    without specific prior written permission.
     22  1.17    agc  *
     23  1.17    agc  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
     24  1.17    agc  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
     25  1.17    agc  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
     26  1.17    agc  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
     27  1.17    agc  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
     28  1.17    agc  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
     29  1.17    agc  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
     30  1.17    agc  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
     31  1.17    agc  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
     32  1.17    agc  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
     33  1.17    agc  * SUCH DAMAGE.
     34  1.17    agc  *
     35  1.17    agc  *	from: Utah $Hdr: vmparam.h 1.16 91/01/18$
     36  1.17    agc  *	from: @(#)vmparam.h	7.3 (Berkeley) 5/7/91
     37  1.17    agc  *	vmparam.h,v 1.2 1993/05/22 07:58:38 cgd Exp
     38  1.17    agc  */
     39  1.17    agc /*
     40  1.17    agc  * Copyright (c) 1988 University of Utah.
     41   1.1    gwr  *
     42   1.1    gwr  * This code is derived from software contributed to Berkeley by
     43   1.1    gwr  * the Systems Programming Group of the University of Utah Computer
     44   1.1    gwr  * Science Department.
     45   1.1    gwr  *
     46   1.1    gwr  * Redistribution and use in source and binary forms, with or without
     47   1.1    gwr  * modification, are permitted provided that the following conditions
     48   1.1    gwr  * are met:
     49   1.1    gwr  * 1. Redistributions of source code must retain the above copyright
     50   1.1    gwr  *    notice, this list of conditions and the following disclaimer.
     51   1.1    gwr  * 2. Redistributions in binary form must reproduce the above copyright
     52   1.1    gwr  *    notice, this list of conditions and the following disclaimer in the
     53   1.1    gwr  *    documentation and/or other materials provided with the distribution.
     54   1.1    gwr  * 3. All advertising materials mentioning features or use of this software
     55   1.1    gwr  *    must display the following acknowledgement:
     56   1.1    gwr  *	This product includes software developed by the University of
     57   1.1    gwr  *	California, Berkeley and its contributors.
     58   1.1    gwr  * 4. Neither the name of the University nor the names of its contributors
     59   1.1    gwr  *    may be used to endorse or promote products derived from this software
     60   1.1    gwr  *    without specific prior written permission.
     61   1.1    gwr  *
     62   1.1    gwr  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
     63   1.1    gwr  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
     64   1.1    gwr  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
     65   1.1    gwr  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
     66   1.1    gwr  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
     67   1.1    gwr  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
     68   1.1    gwr  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
     69   1.1    gwr  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
     70   1.1    gwr  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
     71   1.1    gwr  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
     72   1.1    gwr  * SUCH DAMAGE.
     73   1.1    gwr  *
     74   1.1    gwr  *	from: Utah $Hdr: vmparam.h 1.16 91/01/18$
     75   1.1    gwr  *	from: @(#)vmparam.h	7.3 (Berkeley) 5/7/91
     76   1.1    gwr  *	vmparam.h,v 1.2 1993/05/22 07:58:38 cgd Exp
     77   1.1    gwr  */
     78   1.1    gwr 
     79   1.1    gwr /*
     80   1.4    gwr  * Machine dependent constants for Sun3X
     81   1.1    gwr  */
     82   1.1    gwr 
     83   1.1    gwr /*
     84   1.1    gwr  * Virtual memory related constants, all in bytes
     85   1.1    gwr  */
     86   1.1    gwr #ifndef MAXTSIZ
     87   1.1    gwr #define	MAXTSIZ		(8*1024*1024)		/* max text size */
     88   1.1    gwr #endif
     89   1.1    gwr #ifndef DFLDSIZ
     90   1.1    gwr #define	DFLDSIZ		(32*1024*1024)		/* initial data size limit */
     91   1.1    gwr #endif
     92   1.1    gwr #ifndef MAXDSIZ
     93   1.1    gwr #define	MAXDSIZ		(128*1024*1024)		/* max data size */
     94   1.1    gwr #endif
     95   1.1    gwr #ifndef	DFLSSIZ
     96   1.1    gwr #define	DFLSSIZ		(2*1024*1024)		/* initial stack size limit */
     97   1.1    gwr #endif
     98   1.1    gwr #ifndef	MAXSSIZ
     99   1.1    gwr #define	MAXSSIZ		(32*1024*1024)		/* max stack size */
    100   1.1    gwr #endif
    101   1.1    gwr 
    102   1.1    gwr /*
    103   1.1    gwr  * PTEs for mapping user space into the kernel for phyio operations.
    104   1.1    gwr  * The actual limitation for physio requests will be the DVMA space,
    105   1.4    gwr  * and that is fixed by hardware design at 1MB.  We could make the
    106   1.1    gwr  * physio map larger than that, but it would not buy us much.
    107   1.1    gwr  */
    108   1.1    gwr #ifndef USRIOSIZE
    109   1.4    gwr #define USRIOSIZE	128	/* 1 MB */
    110   1.1    gwr #endif
    111