vmparam.h (926) | vmparam.h (974) |
---|---|
1/*- 2 * Copyright (c) 1990 The Regents of the University of California. 3 * All rights reserved. | 1/*- 2 * Copyright (c) 1990 The Regents of the University of California. 3 * All rights reserved. |
4 * Copyright (c) 1994 John S. Dyson 5 * All rights reserved. |
|
4 * 5 * This code is derived from software contributed to Berkeley by 6 * William Jolitz. 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions 10 * are met: 11 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * SUCH DAMAGE. 35 * 36 * from: @(#)vmparam.h 5.9 (Berkeley) 5/12/91 | 6 * 7 * This code is derived from software contributed to Berkeley by 8 * William Jolitz. 9 * 10 * Redistribution and use in source and binary forms, with or without 11 * modification, are permitted provided that the following conditions 12 * are met: 13 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36 * SUCH DAMAGE. 37 * 38 * from: @(#)vmparam.h 5.9 (Berkeley) 5/12/91 |
37 * $Id: vmparam.h,v 1.9 1993/12/19 00:50:19 wollman Exp $ | 39 * $Id: vmparam.h,v 1.10 1994/01/03 16:00:52 davidg Exp $ |
38 */ 39 40 41#ifndef _MACHINE_VMPARAM_H_ 42#define _MACHINE_VMPARAM_H_ 1 43 44/* 45 * Machine dependent constants for 386. --- 6 unchanged lines hidden (view full) --- 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 * Immediately after the user structure is the page table map, and then 57 * kernal address space. 58 */ 59#define USRTEXT 0UL | 40 */ 41 42 43#ifndef _MACHINE_VMPARAM_H_ 44#define _MACHINE_VMPARAM_H_ 1 45 46/* 47 * Machine dependent constants for 386. --- 6 unchanged lines hidden (view full) --- 54 * is the top (end) of the user stack. Immediately above the user stack 55 * resides the user structure, which is UPAGES long and contains the 56 * kernel stack. 57 * 58 * Immediately after the user structure is the page table map, and then 59 * kernal address space. 60 */ 61#define USRTEXT 0UL |
60#define USRSTACK 0xFDBFE000UL | 62/* #define USRSTACK 0xFDBFE000UL */ |
61#define BTOPUSRSTACK (0xFDC00-(UPAGES)) /* btop(USRSTACK) */ 62#define LOWPAGES 0UL 63#define HIGHPAGES UPAGES 64 65/* 66 * Virtual memory related constants, all in bytes 67 */ 68#define MAXTSIZ (16UL*1024*1024) /* max text size */ --- 30 unchanged lines hidden (view full) --- 99 */ 100#ifndef SHMMAXPGS 101#define SHMMAXPGS 512 /* XXX until we have more kmap space */ 102#endif 103 104/* 105 * Size of User Raw I/O map 106 */ | 63#define BTOPUSRSTACK (0xFDC00-(UPAGES)) /* btop(USRSTACK) */ 64#define LOWPAGES 0UL 65#define HIGHPAGES UPAGES 66 67/* 68 * Virtual memory related constants, all in bytes 69 */ 70#define MAXTSIZ (16UL*1024*1024) /* max text size */ --- 30 unchanged lines hidden (view full) --- 101 */ 102#ifndef SHMMAXPGS 103#define SHMMAXPGS 512 /* XXX until we have more kmap space */ 104#endif 105 106/* 107 * Size of User Raw I/O map 108 */ |
107#define USRIOSIZE 300 | 109#define USRIOSIZE 1024 |
108 109/* 110 * The size of the clock loop. 111 */ 112#define LOOPPAGES (maxfree - firstfree) 113 114/* 115 * The time for a process to be blocked before being very swappable. --- 89 unchanged lines hidden (view full) --- 205#define mapin(pte, v, pfnum, prot) \ 206 {(*(int *)(pte) = ((pfnum)<<PGSHIFT) | (prot)) ; } 207 208/* 209 * Mach derived constants 210 */ 211 212/* user/kernel map constants */ | 110 111/* 112 * The size of the clock loop. 113 */ 114#define LOOPPAGES (maxfree - firstfree) 115 116/* 117 * The time for a process to be blocked before being very swappable. --- 89 unchanged lines hidden (view full) --- 207#define mapin(pte, v, pfnum, prot) \ 208 {(*(int *)(pte) = ((pfnum)<<PGSHIFT) | (prot)) ; } 209 210/* 211 * Mach derived constants 212 */ 213 214/* user/kernel map constants */ |
215#define KERNBASE (0-(NKPDE+1)*(NBPG*NPTEPG)) 216#define KERNSIZE (NKPDE*NBPG*NPTEPG) 217 |
|
213#define VM_MIN_ADDRESS ((vm_offset_t)0) | 218#define VM_MIN_ADDRESS ((vm_offset_t)0) |
214#define VM_MAXUSER_ADDRESS ((vm_offset_t)0xFDBFE000UL) 215#define UPT_MIN_ADDRESS ((vm_offset_t)0xFDC00000UL) 216#define UPT_MAX_ADDRESS ((vm_offset_t)0xFDFF7000UL) | 219#define VM_MAXUSER_ADDRESS ((vm_offset_t)KERNBASE - (NBPG*(NPTEPG+UPAGES))) 220#define USRSTACK VM_MAXUSER_ADDRESS 221#define UPT_MIN_ADDRESS ((vm_offset_t)KERNBASE - (NBPG*NPTEPG)) 222#define UPT_MAX_ADDRESS ((vm_offset_t)KERNBASE - (NBPG*(NKPDE+2))) |
217#define VM_MAX_ADDRESS UPT_MAX_ADDRESS | 223#define VM_MAX_ADDRESS UPT_MAX_ADDRESS |
218#define VM_MIN_KERNEL_ADDRESS ((vm_offset_t)0xFDFF7000UL) | 224#define VM_MIN_KERNEL_ADDRESS ((vm_offset_t)KERNBASE - (NBPG*(NKPDE+2))) |
219#define UPDT VM_MIN_KERNEL_ADDRESS | 225#define UPDT VM_MIN_KERNEL_ADDRESS |
220#define KPT_MIN_ADDRESS ((vm_offset_t)0xFDFF8000UL) 221#define KPT_MAX_ADDRESS ((vm_offset_t)0xFDFFF000UL) 222#define VM_MAX_KERNEL_ADDRESS ((vm_offset_t)0xFF7FF000UL) | 226#define KPT_MIN_ADDRESS ((vm_offset_t)(KERNBASE) - (NBPG*(NKPDE+1))) 227#define KPT_MAX_ADDRESS ((vm_offset_t)(KERNBASE) - NBPG) 228#define VM_MAX_KERNEL_ADDRESS ((vm_offset_t)ALT_MIN_ADDRESS - NBPG) 229#define ALT_MIN_ADDRESS ((vm_offset_t)((APTDPTDI) << 22)) 230#define HIGHPAGES UPAGES |
223 | 231 |
232 |
|
224/* virtual sizes (bytes) for various kernel submaps */ 225#define VM_MBUF_SIZE (NMBCLUSTERS*MCLBYTES) 226#define VM_KMEM_SIZE (16 * 1024 * 1024) 227#define VM_PHYS_SIZE (USRIOSIZE*CLBYTES) 228 229/* pcb base */ 230#define pcbb(p) ((u_int)(p)->p_addr) 231 --- 34 unchanged lines hidden --- | 233/* virtual sizes (bytes) for various kernel submaps */ 234#define VM_MBUF_SIZE (NMBCLUSTERS*MCLBYTES) 235#define VM_KMEM_SIZE (16 * 1024 * 1024) 236#define VM_PHYS_SIZE (USRIOSIZE*CLBYTES) 237 238/* pcb base */ 239#define pcbb(p) ((u_int)(p)->p_addr) 240 --- 34 unchanged lines hidden --- |