1*b3424f94Sderaadt /* $OpenBSD: vmparam.h,v 1.20 2024/02/01 00:39:57 deraadt Exp $ */ 2e1e4f5b1Sdrahn /* $NetBSD: vmparam.h,v 1.18 2003/05/21 18:04:44 thorpej Exp $ */ 3e1e4f5b1Sdrahn 4e1e4f5b1Sdrahn /* 5e1e4f5b1Sdrahn * Copyright (c) 2001, 2002 Wasabi Systems, Inc. 6e1e4f5b1Sdrahn * All rights reserved. 7e1e4f5b1Sdrahn * 8e1e4f5b1Sdrahn * Written by Jason R. Thorpe for Wasabi Systems, Inc. 9e1e4f5b1Sdrahn * 10e1e4f5b1Sdrahn * Redistribution and use in source and binary forms, with or without 11e1e4f5b1Sdrahn * modification, are permitted provided that the following conditions 12e1e4f5b1Sdrahn * are met: 13e1e4f5b1Sdrahn * 1. Redistributions of source code must retain the above copyright 14e1e4f5b1Sdrahn * notice, this list of conditions and the following disclaimer. 15e1e4f5b1Sdrahn * 2. Redistributions in binary form must reproduce the above copyright 16e1e4f5b1Sdrahn * notice, this list of conditions and the following disclaimer in the 17e1e4f5b1Sdrahn * documentation and/or other materials provided with the distribution. 18e1e4f5b1Sdrahn * 3. All advertising materials mentioning features or use of this software 19e1e4f5b1Sdrahn * must display the following acknowledgement: 20e1e4f5b1Sdrahn * This product includes software developed for the NetBSD Project by 21e1e4f5b1Sdrahn * Wasabi Systems, Inc. 22e1e4f5b1Sdrahn * 4. The name of Wasabi Systems, Inc. may not be used to endorse 23e1e4f5b1Sdrahn * or promote products derived from this software without specific prior 24e1e4f5b1Sdrahn * written permission. 25e1e4f5b1Sdrahn * 26e1e4f5b1Sdrahn * THIS SOFTWARE IS PROVIDED BY WASABI SYSTEMS, INC. ``AS IS'' AND 27e1e4f5b1Sdrahn * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 28e1e4f5b1Sdrahn * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 29e1e4f5b1Sdrahn * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL WASABI SYSTEMS, INC 30e1e4f5b1Sdrahn * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 31e1e4f5b1Sdrahn * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 32e1e4f5b1Sdrahn * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 33e1e4f5b1Sdrahn * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 34e1e4f5b1Sdrahn * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 35e1e4f5b1Sdrahn * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 36e1e4f5b1Sdrahn * POSSIBILITY OF SUCH DAMAGE. 37e1e4f5b1Sdrahn */ 38e1e4f5b1Sdrahn 392fa72412Spirofti #ifndef _ARM_VMPARAM_H_ 402fa72412Spirofti #define _ARM_VMPARAM_H_ 41e1e4f5b1Sdrahn 42e1e4f5b1Sdrahn /* 43e1e4f5b1Sdrahn * Virtual Memory parameters common to all arm32 platforms. 44e1e4f5b1Sdrahn */ 45e1e4f5b1Sdrahn 46e1e4f5b1Sdrahn #define USRSTACK VM_MAXUSER_ADDRESS 47e1e4f5b1Sdrahn #define KERNBASE VM_MAXUSER_ADDRESS 48e1e4f5b1Sdrahn 49*b3424f94Sderaadt #define MAXTSIZ (128*1024*1024) /* max text size */ 50*b3424f94Sderaadt 51e1e4f5b1Sdrahn #ifndef DFLDSIZ 52e1e4f5b1Sdrahn #define DFLDSIZ (128*1024*1024) /* initial data size limit */ 53e1e4f5b1Sdrahn #endif 54e1e4f5b1Sdrahn #ifndef MAXDSIZ 55e1e4f5b1Sdrahn #define MAXDSIZ (512*1024*1024) /* max data size */ 56e1e4f5b1Sdrahn #endif 5701d0831fStedu #ifndef BRKSIZ 5801d0831fStedu #define BRKSIZ MAXDSIZ /* heap gap size */ 5901d0831fStedu #endif 60e1e4f5b1Sdrahn #ifndef DFLSSIZ 61e1e4f5b1Sdrahn #define DFLSSIZ (2*1024*1024) /* initial stack size limit */ 62e1e4f5b1Sdrahn #endif 63e1e4f5b1Sdrahn #ifndef MAXSSIZ 64de6c426dSnaddy #define MAXSSIZ (32*1024*1024) /* max stack size */ 65e1e4f5b1Sdrahn #endif 66e1e4f5b1Sdrahn 67a489ea08Sderaadt #define STACKGAP_RANDOM 256*1024 68a489ea08Sderaadt 69e1e4f5b1Sdrahn /* 70e1e4f5b1Sdrahn * Size of SysV shared memory map 71e1e4f5b1Sdrahn */ 72e1e4f5b1Sdrahn #ifndef SHMMAXPGS 73e1e4f5b1Sdrahn #define SHMMAXPGS 1024 74e1e4f5b1Sdrahn #endif 75e1e4f5b1Sdrahn 76e1e4f5b1Sdrahn /* 77e1e4f5b1Sdrahn * Mach derived constants 78e1e4f5b1Sdrahn */ 79b5da920cSderaadt #define VM_MIN_ADDRESS ((vaddr_t) PAGE_SIZE) 80e1e4f5b1Sdrahn #define VM_MAXUSER_ADDRESS ((vaddr_t) ARM_KERNEL_BASE) 81e1e4f5b1Sdrahn #define VM_MAX_ADDRESS VM_MAXUSER_ADDRESS 82e1e4f5b1Sdrahn 83e1e4f5b1Sdrahn #define VM_MIN_KERNEL_ADDRESS ((vaddr_t) ARM_KERNEL_BASE) 84e1e4f5b1Sdrahn 852fa72412Spirofti #endif /* _ARM_VMPARAM_H_ */ 86