pmap.h (149777) | pmap.h (153179) |
---|---|
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 * --- 25 unchanged lines hidden (view full) --- 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 * from: i386 pmap.h,v 1.54 1997/11/20 19:30:35 bde Exp | 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 * --- 25 unchanged lines hidden (view full) --- 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 * from: i386 pmap.h,v 1.54 1997/11/20 19:30:35 bde Exp |
42 * $FreeBSD: head/sys/ia64/include/pmap.h 149777 2005-09-03 23:53:50Z marcel $ | 42 * $FreeBSD: head/sys/ia64/include/pmap.h 153179 2005-12-06 21:09:01Z jhb $ |
43 */ 44 45#ifndef _MACHINE_PMAP_H_ 46#define _MACHINE_PMAP_H_ 47 48#include <sys/queue.h> 49#include <sys/_lock.h> 50#include <sys/_mutex.h> 51#include <machine/atomic.h> 52#include <machine/pte.h> 53 54#ifdef _KERNEL 55 56#ifndef NKPT 57#define NKPT 30 /* initial number of kernel page tables */ 58#endif 59#define MAXKPT (PAGE_SIZE/sizeof(vm_offset_t)) 60 | 43 */ 44 45#ifndef _MACHINE_PMAP_H_ 46#define _MACHINE_PMAP_H_ 47 48#include <sys/queue.h> 49#include <sys/_lock.h> 50#include <sys/_mutex.h> 51#include <machine/atomic.h> 52#include <machine/pte.h> 53 54#ifdef _KERNEL 55 56#ifndef NKPT 57#define NKPT 30 /* initial number of kernel page tables */ 58#endif 59#define MAXKPT (PAGE_SIZE/sizeof(vm_offset_t)) 60 |
61#define vtophys(va) pmap_kextract(((vm_offset_t) (va))) | 61#define vtophys(va) pmap_kextract((vm_offset_t)(va)) |
62 63#endif /* _KERNEL */ 64 65/* 66 * Pmap stuff 67 */ 68struct pv_entry; 69 --- 70 unchanged lines hidden --- | 62 63#endif /* _KERNEL */ 64 65/* 66 * Pmap stuff 67 */ 68struct pv_entry; 69 --- 70 unchanged lines hidden --- |