pmap.h (112841) | pmap.h (112993) |
---|---|
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 112841 2003-03-30 05:24:52Z jake $ | 45 * $FreeBSD: head/sys/amd64/include/pmap.h 112993 2003-04-02 23:53:30Z peter $ |
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) --- 242 int pv_list_count; 243 TAILQ_HEAD(,pv_entry) pv_list; 244}; 245 246struct pmap { 247 pd_entry_t *pm_pdir; /* KVA of page directory */ 248 vm_object_t pm_pteobj; /* Container for pte's */ 249 TAILQ_HEAD(,pv_entry) pm_pvlist; /* list of mappings in pmap */ | 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) --- 242 int pv_list_count; 243 TAILQ_HEAD(,pv_entry) pv_list; 244}; 245 246struct pmap { 247 pd_entry_t *pm_pdir; /* KVA of page directory */ 248 vm_object_t pm_pteobj; /* Container for pte's */ 249 TAILQ_HEAD(,pv_entry) pm_pvlist; /* list of mappings in pmap */ |
250 int pm_active; /* active on cpus */ | 250 u_int pm_active; /* active on cpus */ |
251 struct pmap_statistics pm_stats; /* pmap statistics */ 252 LIST_ENTRY(pmap) pm_list; /* List of all pmaps */ 253#ifdef PAE 254 pdpt_entry_t *pm_pdpt; /* KVA of page director pointer 255 table */ 256#endif 257}; 258 --- 59 unchanged lines hidden --- | 251 struct pmap_statistics pm_stats; /* pmap statistics */ 252 LIST_ENTRY(pmap) pm_list; /* List of all pmaps */ 253#ifdef PAE 254 pdpt_entry_t *pm_pdpt; /* KVA of page director pointer 255 table */ 256#endif 257}; 258 --- 59 unchanged lines hidden --- |