pmap.h (236045) | pmap.h (237168) |
---|---|
1/*- 2 * Copyright (c) 1991 Regents of the University of California. 3 * All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * the Systems Programming Group of the University of Utah Computer 7 * Science Department and William Jolitz of UUNET Technologies Inc. 8 * --- 24 unchanged lines hidden (view full) --- 33 * Derived from hp300 version by Mike Hibler, this version by William 34 * Jolitz uses a recursive map [a pde points to the page directory] to 35 * map the page tables using the pagetables themselves. This is done to 36 * reduce the impact on kernel virtual memory for lots of sparse address 37 * space, and to reduce the cost of memory to each process. 38 * 39 * from: hp300: @(#)pmap.h 7.2 (Berkeley) 12/16/90 40 * from: @(#)pmap.h 7.4 (Berkeley) 5/12/91 | 1/*- 2 * Copyright (c) 1991 Regents of the University of California. 3 * All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * the Systems Programming Group of the University of Utah Computer 7 * Science Department and William Jolitz of UUNET Technologies Inc. 8 * --- 24 unchanged lines hidden (view full) --- 33 * Derived from hp300 version by Mike Hibler, this version by William 34 * Jolitz uses a recursive map [a pde points to the page directory] to 35 * map the page tables using the pagetables themselves. This is done to 36 * reduce the impact on kernel virtual memory for lots of sparse address 37 * space, and to reduce the cost of memory to each process. 38 * 39 * from: hp300: @(#)pmap.h 7.2 (Berkeley) 12/16/90 40 * from: @(#)pmap.h 7.4 (Berkeley) 5/12/91 |
41 * $FreeBSD: head/sys/i386/include/pmap.h 236045 2012-05-26 06:10:25Z alc $ | 41 * $FreeBSD: head/sys/i386/include/pmap.h 237168 2012-06-16 18:56:19Z alc $ |
42 */ 43 44#ifndef _MACHINE_PMAP_H_ 45#define _MACHINE_PMAP_H_ 46 47/* 48 * Page-directory and page-table entries follow this format, with a few 49 * of the fields not present here and there, depending on a lot of things. --- 443 unchanged lines hidden (view full) --- 493extern vm_paddr_t dump_avail[]; 494extern int pseflag; 495extern int pgeflag; 496extern char *ptvmmap; /* poor name! */ 497extern vm_offset_t virtual_avail; 498extern vm_offset_t virtual_end; 499 500#define pmap_page_get_memattr(m) ((vm_memattr_t)(m)->md.pat_mode) | 42 */ 43 44#ifndef _MACHINE_PMAP_H_ 45#define _MACHINE_PMAP_H_ 46 47/* 48 * Page-directory and page-table entries follow this format, with a few 49 * of the fields not present here and there, depending on a lot of things. --- 443 unchanged lines hidden (view full) --- 493extern vm_paddr_t dump_avail[]; 494extern int pseflag; 495extern int pgeflag; 496extern char *ptvmmap; /* poor name! */ 497extern vm_offset_t virtual_avail; 498extern vm_offset_t virtual_end; 499 500#define pmap_page_get_memattr(m) ((vm_memattr_t)(m)->md.pat_mode) |
501#define pmap_page_is_write_mapped(m) (((m)->aflags & PGA_WRITEABLE) != 0) |
|
501#define pmap_unmapbios(va, sz) pmap_unmapdev((va), (sz)) 502 503/* 504 * Only the following functions or macros may be used before pmap_bootstrap() 505 * is called: pmap_kenter(), pmap_kextract(), pmap_kremove(), vtophys(), and 506 * vtopte(). 507 */ 508void pmap_bootstrap(vm_paddr_t); --- 25 unchanged lines hidden --- | 502#define pmap_unmapbios(va, sz) pmap_unmapdev((va), (sz)) 503 504/* 505 * Only the following functions or macros may be used before pmap_bootstrap() 506 * is called: pmap_kenter(), pmap_kextract(), pmap_kremove(), vtophys(), and 507 * vtopte(). 508 */ 509void pmap_bootstrap(vm_paddr_t); --- 25 unchanged lines hidden --- |