1 /* $OpenBSD: vmparam.h,v 1.20 2015/11/01 20:10:00 miod Exp $ */ 2 /* 3 * Mach Operating System 4 * Copyright (c) 1992 Carnegie Mellon University 5 * All Rights Reserved. 6 * 7 * Permission to use, copy, modify and distribute this software and its 8 * documentation is hereby granted, provided that both the copyright 9 * notice and this permission notice appear in all copies of the 10 * software, derivative works or modified versions, and any portions 11 * thereof, and that both notices appear in supporting documentation. 12 * 13 * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS" 14 * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR 15 * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE. 16 * 17 * Carnegie Mellon requests users of this software to return to 18 * 19 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU 20 * School of Computer Science 21 * Carnegie Mellon University 22 * Pittsburgh PA 15213-3890 23 * 24 * any improvements or extensions that they make and grant Carnegie Mellon 25 * the rights to redistribute these changes. 26 */ 27 28 /* 29 * machine dependent virtual memory parameters. 30 */ 31 32 33 #ifndef _MACHINE_VM_PARAM_ 34 #define _MACHINE_VM_PARAM_ 35 36 #define USRSTACK VM_MAXUSER_ADDRESS /* Start of user stack */ 37 38 /* 39 * Virtual memory related constants, all in bytes 40 */ 41 #ifndef MAXTSIZ 42 #define MAXTSIZ (32*1024*1024) /* max text size */ 43 #endif 44 #ifndef DFLDSIZ 45 #define DFLDSIZ (64*1024*1024) /* initial data size limit */ 46 #endif 47 #ifndef MAXDSIZ 48 #define MAXDSIZ (256*1024*1024) /* max data size */ 49 #endif 50 #ifndef BRKSIZ 51 #define BRKSIZ MAXDSIZ /* heap gap size */ 52 #endif 53 #ifndef DFLSSIZ 54 #define DFLSSIZ (2*1024*1024) /* initial stack size limit */ 55 #endif 56 #ifndef MAXSSIZ 57 #define MAXSSIZ (32*1024*1024) /* max stack size */ 58 #endif 59 60 #define STACKGAP_RANDOM 256*1024 61 62 /* 63 * Size of shared memory map 64 */ 65 #ifndef SHMMAXPGS 66 #define SHMMAXPGS 1024 67 #endif 68 69 #define VM_MIN_ADDRESS ((vaddr_t)PAGE_SIZE) 70 #define VM_MAX_ADDRESS ((vaddr_t)0xfffff000) 71 #define VM_MAXUSER_ADDRESS VM_MAX_ADDRESS 72 73 /* virtual sizes (bytes) for various kernel submaps */ 74 #define VM_PHYS_SIZE (1 * NPTEPG * PAGE_SIZE) 75 76 /* 77 * Constants which control the way the VM system deals with memory segments. 78 * All m88k systems so far only have one physical memory segment. 79 */ 80 #define VM_PHYSSEG_MAX 1 81 #define VM_PHYSSEG_STRAT VM_PSTRAT_RANDOM 82 #define VM_PHYSSEG_NOADD 83 84 #endif /* _MACHINE_VM_PARAM_ */ 85