Deleted Added
full compact
pmap.h (153179) pmap.h (156699)
1/*-
2 * Copyright (c) 2003 Peter Wemm.
3 * Copyright (c) 1991 Regents of the University of California.
4 * All rights reserved.
5 *
6 * This code is derived from software contributed to Berkeley by
7 * the Systems Programming Group of the University of Utah Computer
8 * Science Department and William Jolitz of UUNET Technologies Inc.

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

34 * Derived from hp300 version by Mike Hibler, this version by William
35 * Jolitz uses a recursive map [a pde points to the page directory] to
36 * map the page tables using the pagetables themselves. This is done to
37 * reduce the impact on kernel virtual memory for lots of sparse address
38 * space, and to reduce the cost of memory to each process.
39 *
40 * from: hp300: @(#)pmap.h 7.2 (Berkeley) 12/16/90
41 * from: @(#)pmap.h 7.4 (Berkeley) 5/12/91
1/*-
2 * Copyright (c) 2003 Peter Wemm.
3 * Copyright (c) 1991 Regents of the University of California.
4 * All rights reserved.
5 *
6 * This code is derived from software contributed to Berkeley by
7 * the Systems Programming Group of the University of Utah Computer
8 * Science Department and William Jolitz of UUNET Technologies Inc.

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

34 * Derived from hp300 version by Mike Hibler, this version by William
35 * Jolitz uses a recursive map [a pde points to the page directory] to
36 * map the page tables using the pagetables themselves. This is done to
37 * reduce the impact on kernel virtual memory for lots of sparse address
38 * space, and to reduce the cost of memory to each process.
39 *
40 * from: hp300: @(#)pmap.h 7.2 (Berkeley) 12/16/90
41 * from: @(#)pmap.h 7.4 (Berkeley) 5/12/91
42 * $FreeBSD: head/sys/amd64/include/pmap.h 153179 2005-12-06 21:09:01Z jhb $
42 * $FreeBSD: head/sys/amd64/include/pmap.h 156699 2006-03-14 00:01:56Z peter $
43 */
44
45#ifndef _MACHINE_PMAP_H_
46#define _MACHINE_PMAP_H_
47
48/*
49 * Page-directory and page-table entries follow this format, with a few
50 * of the fields not present here and there, depending on a lot of things.

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

171#ifdef _KERNEL
172/*
173 * virtual address to page table entry and
174 * to physical address.
175 * Note: these work recursively, thus vtopte of a pte will give
176 * the corresponding pde that in turn maps it.
177 */
178pt_entry_t *vtopte(vm_offset_t);
43 */
44
45#ifndef _MACHINE_PMAP_H_
46#define _MACHINE_PMAP_H_
47
48/*
49 * Page-directory and page-table entries follow this format, with a few
50 * of the fields not present here and there, depending on a lot of things.

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

171#ifdef _KERNEL
172/*
173 * virtual address to page table entry and
174 * to physical address.
175 * Note: these work recursively, thus vtopte of a pte will give
176 * the corresponding pde that in turn maps it.
177 */
178pt_entry_t *vtopte(vm_offset_t);
179#define vtophys(va) pmap_kextract((vm_offset_t)(va))
179#define vtophys(va) pmap_kextract(((vm_offset_t) (va)))
180
181static __inline pt_entry_t
182pte_load(pt_entry_t *ptep)
183{
184 pt_entry_t r;
185
186 r = *ptep;
187 return (r);

--- 117 unchanged lines hidden ---
180
181static __inline pt_entry_t
182pte_load(pt_entry_t *ptep)
183{
184 pt_entry_t r;
185
186 r = *ptep;
187 return (r);

--- 117 unchanged lines hidden ---