pmap.h (233381) | 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 * --- 26 unchanged lines hidden (view full) --- 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 * from: src/sys/i386/include/pmap.h,v 1.65.2.2 2000/11/30 01:54:42 peter 42 * JNPR: pmap.h,v 1.7.2.1 2007/09/10 07:44:12 girish | 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 * --- 26 unchanged lines hidden (view full) --- 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 * from: src/sys/i386/include/pmap.h,v 1.65.2.2 2000/11/30 01:54:42 peter 42 * JNPR: pmap.h,v 1.7.2.1 2007/09/10 07:44:12 girish |
43 * $FreeBSD: head/sys/mips/include/pmap.h 233381 2012-03-23 18:07:12Z gonzo $ | 43 * $FreeBSD: head/sys/mips/include/pmap.h 237168 2012-06-16 18:56:19Z alc $ |
44 */ 45 46#ifndef _MACHINE_PMAP_H_ 47#define _MACHINE_PMAP_H_ 48 49#include <machine/vmparam.h> 50#include <machine/pte.h> 51 --- 94 unchanged lines hidden (view full) --- 146 147extern vm_offset_t virtual_avail; 148extern vm_offset_t virtual_end; 149 150extern vm_paddr_t dump_avail[PHYS_AVAIL_ENTRIES + 2]; 151 152#define pmap_page_get_memattr(m) VM_MEMATTR_DEFAULT 153#define pmap_page_is_mapped(m) (!TAILQ_EMPTY(&(m)->md.pv_list)) | 44 */ 45 46#ifndef _MACHINE_PMAP_H_ 47#define _MACHINE_PMAP_H_ 48 49#include <machine/vmparam.h> 50#include <machine/pte.h> 51 --- 94 unchanged lines hidden (view full) --- 146 147extern vm_offset_t virtual_avail; 148extern vm_offset_t virtual_end; 149 150extern vm_paddr_t dump_avail[PHYS_AVAIL_ENTRIES + 2]; 151 152#define pmap_page_get_memattr(m) VM_MEMATTR_DEFAULT 153#define pmap_page_is_mapped(m) (!TAILQ_EMPTY(&(m)->md.pv_list)) |
154#define pmap_page_is_write_mapped(m) (((m)->aflags & PGA_WRITEABLE) != 0) |
|
154#define pmap_page_set_memattr(m, ma) (void)0 155 156void pmap_bootstrap(void); 157void *pmap_mapdev(vm_paddr_t, vm_size_t); 158void pmap_unmapdev(vm_offset_t, vm_size_t); 159vm_offset_t pmap_steal_memory(vm_size_t size); 160int page_is_managed(vm_paddr_t pa); 161void pmap_kenter(vm_offset_t va, vm_paddr_t pa); --- 14 unchanged lines hidden --- | 155#define pmap_page_set_memattr(m, ma) (void)0 156 157void pmap_bootstrap(void); 158void *pmap_mapdev(vm_paddr_t, vm_size_t); 159void pmap_unmapdev(vm_offset_t, vm_size_t); 160vm_offset_t pmap_steal_memory(vm_size_t size); 161int page_is_managed(vm_paddr_t pa); 162void pmap_kenter(vm_offset_t va, vm_paddr_t pa); --- 14 unchanged lines hidden --- |