[BACK]Return to vmparam.h CVS log [TXT][DIR] Up to [local] / sys / arch / vax / include

Annotation of sys/arch/vax/include/vmparam.h, Revision 1.1

1.1     ! nbrk        1: /*     $OpenBSD: vmparam.h,v 1.28 2007/04/22 10:05:51 miod Exp $       */
        !             2: /*     $NetBSD: vmparam.h,v 1.32 2000/03/07 00:05:59 matt Exp $        */
        !             3:
        !             4: /*-
        !             5:  * Copyright (c) 1990 The Regents of the University of California.
        !             6:  * All rights reserved.
        !             7:  *
        !             8:  * This code is derived from software contributed to Berkeley by
        !             9:  * William Jolitz.
        !            10:  *
        !            11:  * Slightly modified for the VAX port /IC
        !            12:  *
        !            13:  * Redistribution and use in source and binary forms, with or without
        !            14:  * modification, are permitted provided that the following conditions
        !            15:  * are met:
        !            16:  * 1. Redistributions of source code must retain the above copyright
        !            17:  *    notice, this list of conditions and the following disclaimer.
        !            18:  * 2. Redistributions in binary form must reproduce the above copyright
        !            19:  *    notice, this list of conditions and the following disclaimer in the
        !            20:  *    documentation and/or other materials provided with the distribution.
        !            21:  * 3. Neither the name of the University nor the names of its contributors
        !            22:  *    may be used to endorse or promote products derived from this software
        !            23:  *    without specific prior written permission.
        !            24:  *
        !            25:  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
        !            26:  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
        !            27:  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
        !            28:  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
        !            29:  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
        !            30:  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
        !            31:  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
        !            32:  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
        !            33:  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
        !            34:  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
        !            35:  * SUCH DAMAGE.
        !            36:  *
        !            37:  *     @(#)vmparam.h   5.9 (Berkeley) 5/12/91
        !            38:  */
        !            39: #ifndef _VMPARAM_H_
        !            40: #define _VMPARAM_H_
        !            41:
        !            42: /*
        !            43:  * Machine dependent constants for VAX.
        !            44:  */
        !            45:
        !            46: /*
        !            47:  * USRTEXT is the start of the user text/data space, while USRSTACK
        !            48:  * is the top (end) of the user stack. Immediately above the user stack
        !            49:  * resides kernel.
        !            50:  *
        !            51:  */
        !            52:
        !            53: #define USRTEXT                NBPG
        !            54: #define USRSTACK       KERNBASE
        !            55:
        !            56: /*
        !            57:  * Virtual memory related constants, all in bytes
        !            58:  */
        !            59:
        !            60: #ifndef MAXTSIZ
        !            61: #define MAXTSIZ                (8*1024*1024)           /* max text size */
        !            62: #endif
        !            63: #ifndef MAXDSIZ
        !            64: #define MAXDSIZ                (32*1024*1024)          /* max data size */
        !            65: #endif
        !            66: #ifndef MAXSSIZ
        !            67: #define MAXSSIZ                (8*1024*1024)           /* max stack size */
        !            68: #endif
        !            69: #ifndef DFLDSIZ
        !            70: #define DFLDSIZ                (4*1024*1024)           /* initial data size limit */
        !            71: #endif
        !            72: #ifndef DFLSSIZ
        !            73: #define DFLSSIZ                (512*1024)              /* initial stack size limit */
        !            74: #endif
        !            75:
        !            76: #define STACKGAP_RANDOM        32*1024
        !            77:
        !            78: #define BRKSIZ         (8*1024*1024)
        !            79:
        !            80: /*
        !            81:  * Size of shared memory map
        !            82:  */
        !            83:
        !            84: #ifndef SHMMAXPGS
        !            85: #define SHMMAXPGS      64              /* XXXX should be 1024 */
        !            86: #endif
        !            87:
        !            88: #define VM_PHYSSEG_MAX         1
        !            89: #define VM_PHYSSEG_NOADD
        !            90: #define VM_PHYSSEG_STRAT       VM_PSTRAT_RANDOM
        !            91:
        !            92: #define        VM_NFREELIST            1
        !            93: #define        VM_FREELIST_DEFAULT     0
        !            94:
        !            95: /* MD round macros */
        !            96: #define        vax_round_page(x) (((vaddr_t)(x) + VAX_PGOFSET) & ~VAX_PGOFSET)
        !            97: #define        vax_trunc_page(x) ((vaddr_t)(x) & ~VAX_PGOFSET)
        !            98:
        !            99: /* user/kernel map constants */
        !           100: #define VM_MIN_ADDRESS         ((vaddr_t)0)
        !           101: #define VM_MAXUSER_ADDRESS     ((vaddr_t)KERNBASE)
        !           102: #define VM_MAX_ADDRESS         ((vaddr_t)KERNBASE)
        !           103: #define VM_MIN_KERNEL_ADDRESS  ((vaddr_t)KERNBASE)
        !           104: #define VM_MAX_KERNEL_ADDRESS  ((vaddr_t)(0xC0000000))
        !           105:
        !           106: #define        USRIOSIZE               (8 * VAX_NPTEPG)        /* 512MB */
        !           107: #define        VM_PHYS_SIZE            (USRIOSIZE*VAX_NBPG)
        !           108:
        !           109: /*
        !           110:  * This should be in <machine/pmap.h>, but needs to be in this file
        !           111:  * due to include ordering issues.
        !           112:  */
        !           113: #define        __HAVE_VM_PAGE_MD
        !           114:
        !           115: struct vm_page_md {
        !           116:        struct pv_entry *pv_head;
        !           117:        int              pv_attr;       /* write/modified bits */
        !           118: };
        !           119:
        !           120: #define        VM_MDPAGE_INIT(pg) \
        !           121:        do { \
        !           122:                (pg)->mdpage.pv_head = NULL; \
        !           123:                (pg)->mdpage.pv_attr = 0; \
        !           124:        } while (0)
        !           125:
        !           126: #endif

CVSweb