Deleted Added
sdiff udiff text old ( 218773 ) new ( 219808 )
full compact
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 219808 2011-03-21 01:09:50Z marcel $
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#include <machine/vmparam.h>
54
55#ifdef _KERNEL
56
57#ifndef NKPT
58#define NKPT 30 /* initial number of kernel page tables */
59#endif
60#define MAXKPT (PAGE_SIZE/sizeof(vm_offset_t))
61

--- 9 unchanged lines hidden (view full) ---

71struct md_page {
72 int pv_list_count;
73 TAILQ_HEAD(,pv_entry) pv_list;
74};
75
76struct pmap {
77 struct mtx pm_mtx;
78 TAILQ_HEAD(,pv_entry) pm_pvlist; /* list of mappings in pmap */
79 uint32_t pm_rid[IA64_VM_MINKERN_REGION];
80 struct pmap_statistics pm_stats; /* pmap statistics */
81};
82
83typedef struct pmap *pmap_t;
84
85#ifdef _KERNEL
86extern struct pmap kernel_pmap_store;
87#define kernel_pmap (&kernel_pmap_store)

--- 57 unchanged lines hidden ---