vmparam.h (561) | vmparam.h (607) |
---|---|
1/*- 2 * Copyright (c) 1990 The Regents of the University of California. 3 * 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 --- 19 unchanged lines hidden (view full) --- 28 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 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 * | 1/*- 2 * Copyright (c) 1990 The Regents of the University of California. 3 * 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 --- 19 unchanged lines hidden (view full) --- 28 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 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 * @(#)vmparam.h 5.9 (Berkeley) 5/12/91 | 36 * from: @(#)vmparam.h 5.9 (Berkeley) 5/12/91 37 * $Id$ |
37 */ 38 39 40/* 41 * Machine dependent constants for 386. 42 */ 43 44/* --- 44 unchanged lines hidden (view full) --- 89 */ 90#define SYSPTSIZE (2*NPTEPG) 91#define USRPTSIZE (2*NPTEPG) 92 93/* 94 * Size of the Shared Memory Pages page table. 95 */ 96#ifndef SHMMAXPGS | 38 */ 39 40 41/* 42 * Machine dependent constants for 386. 43 */ 44 45/* --- 44 unchanged lines hidden (view full) --- 90 */ 91#define SYSPTSIZE (2*NPTEPG) 92#define USRPTSIZE (2*NPTEPG) 93 94/* 95 * Size of the Shared Memory Pages page table. 96 */ 97#ifndef SHMMAXPGS |
97#define SHMMAXPGS 64 /* XXX until we have more kmap space */ | 98#define SHMMAXPGS 512 /* XXX until we have more kmap space */ |
98#endif 99 100/* 101 * Size of User Raw I/O map 102 */ 103#define USRIOSIZE 300 104 105/* --- 108 unchanged lines hidden (view full) --- 214#define VM_MIN_KERNEL_ADDRESS ((vm_offset_t)0xFDFF7000) 215#define UPDT VM_MIN_KERNEL_ADDRESS 216#define KPT_MIN_ADDRESS ((vm_offset_t)0xFDFF8000) 217#define KPT_MAX_ADDRESS ((vm_offset_t)0xFDFFF000) 218#define VM_MAX_KERNEL_ADDRESS ((vm_offset_t)0xFF7FF000) 219 220/* virtual sizes (bytes) for various kernel submaps */ 221#define VM_MBUF_SIZE (NMBCLUSTERS*MCLBYTES) | 99#endif 100 101/* 102 * Size of User Raw I/O map 103 */ 104#define USRIOSIZE 300 105 106/* --- 108 unchanged lines hidden (view full) --- 215#define VM_MIN_KERNEL_ADDRESS ((vm_offset_t)0xFDFF7000) 216#define UPDT VM_MIN_KERNEL_ADDRESS 217#define KPT_MIN_ADDRESS ((vm_offset_t)0xFDFF8000) 218#define KPT_MAX_ADDRESS ((vm_offset_t)0xFDFFF000) 219#define VM_MAX_KERNEL_ADDRESS ((vm_offset_t)0xFF7FF000) 220 221/* virtual sizes (bytes) for various kernel submaps */ 222#define VM_MBUF_SIZE (NMBCLUSTERS*MCLBYTES) |
222#define VM_KMEM_SIZE (NKMEMCLUSTERS*CLBYTES) | 223#define VM_KMEM_SIZE (16 * 1024 * 1024) |
223#define VM_PHYS_SIZE (USRIOSIZE*CLBYTES) 224 | 224#define VM_PHYS_SIZE (USRIOSIZE*CLBYTES) 225 |
225/* # of kernel PT pages (initial only, can grow dynamically) */ 226#define VM_KERNEL_PT_PAGES ((vm_size_t)2) /* XXX: SYSPTSIZE */ 227 | |
228/* pcb base */ 229#define pcbb(p) ((u_int)(p)->p_addr) 230 231/* 232 * Flush MMU TLB 233 */ 234 235#ifndef I386_CR3PAT --- 28 unchanged lines hidden --- | 226/* pcb base */ 227#define pcbb(p) ((u_int)(p)->p_addr) 228 229/* 230 * Flush MMU TLB 231 */ 232 233#ifndef I386_CR3PAT --- 28 unchanged lines hidden --- |