pmap.h (111636) | pmap.h (112312) |
---|---|
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 * --- 28 unchanged lines hidden (view full) --- 37 * Derived from hp300 version by Mike Hibler, this version by William 38 * Jolitz uses a recursive map [a pde points to the page directory] to 39 * map the page tables using the pagetables themselves. This is done to 40 * reduce the impact on kernel virtual memory for lots of sparse address 41 * space, and to reduce the cost of memory to each process. 42 * 43 * from: hp300: @(#)pmap.h 7.2 (Berkeley) 12/16/90 44 * 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 * --- 28 unchanged lines hidden (view full) --- 37 * Derived from hp300 version by Mike Hibler, this version by William 38 * Jolitz uses a recursive map [a pde points to the page directory] to 39 * map the page tables using the pagetables themselves. This is done to 40 * reduce the impact on kernel virtual memory for lots of sparse address 41 * space, and to reduce the cost of memory to each process. 42 * 43 * from: hp300: @(#)pmap.h 7.2 (Berkeley) 12/16/90 44 * from: @(#)pmap.h 7.4 (Berkeley) 5/12/91 |
45 * $FreeBSD: head/sys/amd64/include/pmap.h 111636 2003-02-27 20:13:20Z alc $ | 45 * $FreeBSD: head/sys/amd64/include/pmap.h 112312 2003-03-16 04:16:03Z jake $ |
46 */ 47 48#ifndef _MACHINE_PMAP_H_ 49#define _MACHINE_PMAP_H_ 50 51/* 52 * Page-directory and page-table entires follow this format, with a few 53 * of the fields not present here and there, depending on a lot of things. --- 188 unchanged lines hidden (view full) --- 242extern vm_offset_t clean_eva; 243extern vm_offset_t clean_sva; 244extern vm_offset_t phys_avail[]; 245extern char *ptvmmap; /* poor name! */ 246extern vm_offset_t virtual_avail; 247extern vm_offset_t virtual_end; 248 249void pmap_bootstrap(vm_offset_t, vm_offset_t); | 46 */ 47 48#ifndef _MACHINE_PMAP_H_ 49#define _MACHINE_PMAP_H_ 50 51/* 52 * Page-directory and page-table entires follow this format, with a few 53 * of the fields not present here and there, depending on a lot of things. --- 188 unchanged lines hidden (view full) --- 242extern vm_offset_t clean_eva; 243extern vm_offset_t clean_sva; 244extern vm_offset_t phys_avail[]; 245extern char *ptvmmap; /* poor name! */ 246extern vm_offset_t virtual_avail; 247extern vm_offset_t virtual_end; 248 249void pmap_bootstrap(vm_offset_t, vm_offset_t); |
250void pmap_kenter(vm_offset_t va, vm_offset_t pa); 251void pmap_kremove(vm_offset_t); |
|
250void *pmap_mapdev(vm_offset_t, vm_size_t); 251void pmap_unmapdev(vm_offset_t, vm_size_t); 252pt_entry_t *pmap_pte(pmap_t, vm_offset_t) __pure2; 253void pmap_set_opt(void); 254void pmap_invalidate_page(pmap_t, vm_offset_t); 255void pmap_invalidate_range(pmap_t, vm_offset_t, vm_offset_t); 256void pmap_invalidate_all(pmap_t); 257 258#endif /* _KERNEL */ 259 260#endif /* !LOCORE */ 261 262#endif /* !_MACHINE_PMAP_H_ */ | 252void *pmap_mapdev(vm_offset_t, vm_size_t); 253void pmap_unmapdev(vm_offset_t, vm_size_t); 254pt_entry_t *pmap_pte(pmap_t, vm_offset_t) __pure2; 255void pmap_set_opt(void); 256void pmap_invalidate_page(pmap_t, vm_offset_t); 257void pmap_invalidate_range(pmap_t, vm_offset_t, vm_offset_t); 258void pmap_invalidate_all(pmap_t); 259 260#endif /* _KERNEL */ 261 262#endif /* !LOCORE */ 263 264#endif /* !_MACHINE_PMAP_H_ */ |