Deleted Added
full compact
pmap.h (351439) pmap.h (354651)
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: stable/11/sys/amd64/include/pmap.h 351439 2019-08-23 22:03:50Z jhb $
42 * $FreeBSD: stable/11/sys/amd64/include/pmap.h 354651 2019-11-12 18:04:28Z kib $
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.

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

402#define pmap_page_get_memattr(m) ((vm_memattr_t)(m)->md.pat_mode)
403#define pmap_page_is_write_mapped(m) (((m)->aflags & PGA_WRITEABLE) != 0)
404#define pmap_unmapbios(va, sz) pmap_unmapdev((va), (sz))
405
406struct thread;
407
408void pmap_activate_boot(pmap_t pmap);
409void pmap_activate_sw(struct thread *);
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.

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

402#define pmap_page_get_memattr(m) ((vm_memattr_t)(m)->md.pat_mode)
403#define pmap_page_is_write_mapped(m) (((m)->aflags & PGA_WRITEABLE) != 0)
404#define pmap_unmapbios(va, sz) pmap_unmapdev((va), (sz))
405
406struct thread;
407
408void pmap_activate_boot(pmap_t pmap);
409void pmap_activate_sw(struct thread *);
410void pmap_allow_2m_x_ept_recalculate(void);
410void pmap_bootstrap(vm_paddr_t *);
411int pmap_cache_bits(pmap_t pmap, int mode, boolean_t is_pde);
412int pmap_change_attr(vm_offset_t, vm_size_t, int);
413void pmap_demote_DMAP(vm_paddr_t base, vm_size_t len, boolean_t invalidate);
414void pmap_init_pat(void);
415void pmap_kenter(vm_offset_t va, vm_paddr_t pa);
416void *pmap_kenter_temporary(vm_paddr_t pa, int i);
417vm_paddr_t pmap_kextract(vm_offset_t);

--- 60 unchanged lines hidden ---
411void pmap_bootstrap(vm_paddr_t *);
412int pmap_cache_bits(pmap_t pmap, int mode, boolean_t is_pde);
413int pmap_change_attr(vm_offset_t, vm_size_t, int);
414void pmap_demote_DMAP(vm_paddr_t base, vm_size_t len, boolean_t invalidate);
415void pmap_init_pat(void);
416void pmap_kenter(vm_offset_t va, vm_paddr_t pa);
417void *pmap_kenter_temporary(vm_paddr_t pa, int i);
418vm_paddr_t pmap_kextract(vm_offset_t);

--- 60 unchanged lines hidden ---