Deleted Added
full compact
pmap.h (235598) pmap.h (237168)
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 235598 2012-05-18 05:36:04Z alc $
42 * $FreeBSD: head/sys/amd64/include/pmap.h 237168 2012-06-16 18:56:19Z alc $
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.

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

304extern caddr_t CADDR1;
305extern pt_entry_t *CMAP1;
306extern vm_paddr_t phys_avail[];
307extern vm_paddr_t dump_avail[];
308extern vm_offset_t virtual_avail;
309extern vm_offset_t virtual_end;
310
311#define pmap_page_get_memattr(m) ((vm_memattr_t)(m)->md.pat_mode)
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.

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

304extern caddr_t CADDR1;
305extern pt_entry_t *CMAP1;
306extern vm_paddr_t phys_avail[];
307extern vm_paddr_t dump_avail[];
308extern vm_offset_t virtual_avail;
309extern vm_offset_t virtual_end;
310
311#define pmap_page_get_memattr(m) ((vm_memattr_t)(m)->md.pat_mode)
312#define pmap_page_is_write_mapped(m) (((m)->aflags & PGA_WRITEABLE) != 0)
312#define pmap_unmapbios(va, sz) pmap_unmapdev((va), (sz))
313
314void pmap_bootstrap(vm_paddr_t *);
315int pmap_change_attr(vm_offset_t, vm_size_t, int);
316void pmap_demote_DMAP(vm_paddr_t base, vm_size_t len, boolean_t invalidate);
317void pmap_init_pat(void);
318void pmap_kenter(vm_offset_t va, vm_paddr_t pa);
319void *pmap_kenter_temporary(vm_paddr_t pa, int i);

--- 20 unchanged lines hidden ---
313#define pmap_unmapbios(va, sz) pmap_unmapdev((va), (sz))
314
315void pmap_bootstrap(vm_paddr_t *);
316int pmap_change_attr(vm_offset_t, vm_size_t, int);
317void pmap_demote_DMAP(vm_paddr_t base, vm_size_t len, boolean_t invalidate);
318void pmap_init_pat(void);
319void pmap_kenter(vm_offset_t va, vm_paddr_t pa);
320void *pmap_kenter_temporary(vm_paddr_t pa, int i);

--- 20 unchanged lines hidden ---