vmparam.h (92670) | vmparam.h (96912) |
---|---|
1/* $FreeBSD: head/sys/ia64/include/vmparam.h 92670 2002-03-19 11:07:09Z peter $ */ | 1/* $FreeBSD: head/sys/ia64/include/vmparam.h 96912 2002-05-19 04:42:19Z marcel $ */ |
2/* From: NetBSD: vmparam.h,v 1.6 1997/09/23 23:23:23 mjacob Exp */ | 2/* From: NetBSD: vmparam.h,v 1.6 1997/09/23 23:23:23 mjacob Exp */ |
3#ifndef _ALPHA_VMPARAM_H 4#define _ALPHA_VMPARAM_H | 3#ifndef _MACHINE_VMPARAM_H 4#define _MACHINE_VMPARAM_H |
5/* 6 * Copyright (c) 1988 University of Utah. 7 * Copyright (c) 1992, 1993 8 * The Regents of the University of California. All rights reserved. 9 * 10 * This code is derived from software contributed to Berkeley by 11 * the Systems Programming Group of the University of Utah Computer 12 * Science Department and Ralph Campbell. --- 27 unchanged lines hidden (view full) --- 40 * SUCH DAMAGE. 41 * 42 * from: Utah $Hdr: vmparam.h 1.16 91/01/18$ 43 * 44 * @(#)vmparam.h 8.2 (Berkeley) 4/22/94 45 */ 46 47/* | 5/* 6 * Copyright (c) 1988 University of Utah. 7 * Copyright (c) 1992, 1993 8 * The Regents of the University of California. All rights reserved. 9 * 10 * This code is derived from software contributed to Berkeley by 11 * the Systems Programming Group of the University of Utah Computer 12 * Science Department and Ralph Campbell. --- 27 unchanged lines hidden (view full) --- 40 * SUCH DAMAGE. 41 * 42 * from: Utah $Hdr: vmparam.h 1.16 91/01/18$ 43 * 44 * @(#)vmparam.h 8.2 (Berkeley) 4/22/94 45 */ 46 47/* |
48 * Machine dependent constants for Alpha. | 48 * Machine dependent constants for ia64. |
49 */ 50/* 51 * USRTEXT is the start of the user text/data space, while USRSTACK 52 * is the top (end) of the user stack. Immediately above the user stack 53 * resides the user structure, which is UPAGES long and contains the 54 * kernel stack. 55 */ 56#define USRTEXT CLBYTES --- 59 unchanged lines hidden (view full) --- 116 * pages against paging and will just swap you out rather than paging you. 117 * Note that each process has at least UPAGES+CLSIZE pages which are not 118 * paged anyways, in addition to SAFERSS. 119 */ 120#define SAFERSS 10 /* nominal ``small'' resident set size 121 protected against replacement */ 122 123/* | 49 */ 50/* 51 * USRTEXT is the start of the user text/data space, while USRSTACK 52 * is the top (end) of the user stack. Immediately above the user stack 53 * resides the user structure, which is UPAGES long and contains the 54 * kernel stack. 55 */ 56#define USRTEXT CLBYTES --- 59 unchanged lines hidden (view full) --- 116 * pages against paging and will just swap you out rather than paging you. 117 * Note that each process has at least UPAGES+CLSIZE pages which are not 118 * paged anyways, in addition to SAFERSS. 119 */ 120#define SAFERSS 10 /* nominal ``small'' resident set size 121 protected against replacement */ 122 123/* |
124 * Manipulating region bits of an address. 125 */ 126#define IA64_RR_BASE(n) (((u_int64_t) (n)) << 61) 127#define IA64_RR_MASK(x) ((x) & ((1L << 61) - 1)) 128 129#define IA64_PHYS_TO_RR6(x) ((x) | IA64_RR_BASE(6)) 130#define IA64_PHYS_TO_RR7(x) ((x) | IA64_RR_BASE(7)) 131 132/* |
|
124 * Mach derived constants 125 */ 126 127/* user/kernel map constants */ 128#define VM_MIN_ADDRESS 0 129#define VM_MAXUSER_ADDRESS IA64_RR_BASE(5) 130#define VM_MAX_ADDRESS VM_MAXUSER_ADDRESS 131#define VM_MIN_KERNEL_ADDRESS IA64_RR_BASE(5) 132#define VM_MAX_KERNEL_ADDRESS (IA64_RR_BASE(6) - 1) 133 | 133 * Mach derived constants 134 */ 135 136/* user/kernel map constants */ 137#define VM_MIN_ADDRESS 0 138#define VM_MAXUSER_ADDRESS IA64_RR_BASE(5) 139#define VM_MAX_ADDRESS VM_MAXUSER_ADDRESS 140#define VM_MIN_KERNEL_ADDRESS IA64_RR_BASE(5) 141#define VM_MAX_KERNEL_ADDRESS (IA64_RR_BASE(6) - 1) 142 |
143#define KERNBASE (VM_MIN_KERNEL_ADDRESS) 144 |
|
134/* virtual sizes (bytes) for various kernel submaps */ 135#ifndef VM_KMEM_SIZE 136#define VM_KMEM_SIZE (12 * 1024 * 1024) 137#endif 138 139/* 140 * How many physical pages per KVA page allocated. 141 * min(max(VM_KMEM_SIZE, Physical memory/VM_KMEM_SIZE_SCALE), VM_KMEM_SIZE_MAX) 142 * is the total KVA space allocated for kmem_map. 143 */ 144#ifndef VM_KMEM_SIZE_SCALE 145#define VM_KMEM_SIZE_SCALE (4) /* XXX 8192 byte pages */ 146#endif 147 148/* initial pagein size of beginning of executable file */ 149#ifndef VM_INITIAL_PAGEIN 150#define VM_INITIAL_PAGEIN 16 151#endif 152 | 145/* virtual sizes (bytes) for various kernel submaps */ 146#ifndef VM_KMEM_SIZE 147#define VM_KMEM_SIZE (12 * 1024 * 1024) 148#endif 149 150/* 151 * How many physical pages per KVA page allocated. 152 * min(max(VM_KMEM_SIZE, Physical memory/VM_KMEM_SIZE_SCALE), VM_KMEM_SIZE_MAX) 153 * is the total KVA space allocated for kmem_map. 154 */ 155#ifndef VM_KMEM_SIZE_SCALE 156#define VM_KMEM_SIZE_SCALE (4) /* XXX 8192 byte pages */ 157#endif 158 159/* initial pagein size of beginning of executable file */ 160#ifndef VM_INITIAL_PAGEIN 161#define VM_INITIAL_PAGEIN 16 162#endif 163 |
153#endif /* !_ALPHA_VMPARAM_H */ | 164#endif /* !_MACHINE_VMPARAM_H */ |