vmparam.h (172317) | vmparam.h (174938) |
---|---|
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. 6 * Copyright (c) 2003 Peter Wemm 7 * All rights reserved. 8 * --- 24 unchanged lines hidden (view full) --- 33 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 34 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 35 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 36 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 37 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 38 * SUCH DAMAGE. 39 * 40 * from: @(#)vmparam.h 5.9 (Berkeley) 5/12/91 | 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. 6 * Copyright (c) 2003 Peter Wemm 7 * All rights reserved. 8 * --- 24 unchanged lines hidden (view full) --- 33 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 34 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 35 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 36 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 37 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 38 * SUCH DAMAGE. 39 * 40 * from: @(#)vmparam.h 5.9 (Berkeley) 5/12/91 |
41 * $FreeBSD: head/sys/amd64/include/vmparam.h 172317 2007-09-25 06:25:06Z alc $ | 41 * $FreeBSD: head/sys/amd64/include/vmparam.h 174938 2007-12-27 16:45:39Z alc $ |
42 */ 43 44 45#ifndef _MACHINE_VMPARAM_H_ 46#define _MACHINE_VMPARAM_H_ 1 47 48/* 49 * Machine dependent constants for AMD64. --- 77 unchanged lines hidden (view full) --- 127 * at most 8 PDEs, collectively mapping 16MB of physical memory. By 128 * reducing the number of distinct 16MB "pages" that are used by UMA, 129 * the physical memory allocator reduces the likelihood of both 2MB 130 * page TLB misses and cache misses caused by 2MB page TLB misses. 131 */ 132#define VM_NFREEORDER 13 133 134/* | 42 */ 43 44 45#ifndef _MACHINE_VMPARAM_H_ 46#define _MACHINE_VMPARAM_H_ 1 47 48/* 49 * Machine dependent constants for AMD64. --- 77 unchanged lines hidden (view full) --- 127 * at most 8 PDEs, collectively mapping 16MB of physical memory. By 128 * reducing the number of distinct 16MB "pages" that are used by UMA, 129 * the physical memory allocator reduces the likelihood of both 2MB 130 * page TLB misses and cache misses caused by 2MB page TLB misses. 131 */ 132#define VM_NFREEORDER 13 133 134/* |
135 * Enable superpage reservations: 1 level. 136 */ 137#ifndef VM_NRESERVLEVEL 138#define VM_NRESERVLEVEL 1 139#endif 140 141/* 142 * Level 0 reservations consist of 512 pages. 143 */ 144#ifndef VM_LEVEL_0_ORDER 145#define VM_LEVEL_0_ORDER 9 146#endif 147 148/* |
|
135 * Virtual addresses of things. Derived from the page directory and 136 * page table indexes from pmap.h for precision. 137 * Because of the page that is both a PD and PT, it looks a little 138 * messy at times, but hey, we'll do anything to save a page :-) 139 */ 140 141#define VM_MAX_KERNEL_ADDRESS KVADDR(KPML4I, NPDPEPG-1, NKPDE-1, NPTEPG-1) 142#define VM_MIN_KERNEL_ADDRESS KVADDR(KPML4I, KPDPI, 0, 0) --- 47 unchanged lines hidden --- | 149 * Virtual addresses of things. Derived from the page directory and 150 * page table indexes from pmap.h for precision. 151 * Because of the page that is both a PD and PT, it looks a little 152 * messy at times, but hey, we'll do anything to save a page :-) 153 */ 154 155#define VM_MAX_KERNEL_ADDRESS KVADDR(KPML4I, NPDPEPG-1, NKPDE-1, NPTEPG-1) 156#define VM_MIN_KERNEL_ADDRESS KVADDR(KPML4I, KPDPI, 0, 0) --- 47 unchanged lines hidden --- |