Deleted Added
full compact
pmap.h (91403) pmap.h (92029)
1/*
2 * Copyright (c) 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * The Mach Operating System project at Carnegie-Mellon University.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

56 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
57 * School of Computer Science
58 * Carnegie Mellon University
59 * Pittsburgh PA 15213-3890
60 *
61 * any improvements or extensions that they make and grant Carnegie the
62 * rights to redistribute these changes.
63 *
1/*
2 * Copyright (c) 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * The Mach Operating System project at Carnegie-Mellon University.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

56 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
57 * School of Computer Science
58 * Carnegie Mellon University
59 * Pittsburgh PA 15213-3890
60 *
61 * any improvements or extensions that they make and grant Carnegie the
62 * rights to redistribute these changes.
63 *
64 * $FreeBSD: head/sys/vm/pmap.h 91403 2002-02-27 18:03:02Z silby $
64 * $FreeBSD: head/sys/vm/pmap.h 92029 2002-03-10 21:52:48Z eivind $
65 */
66
67/*
68 * Machine address mapping definitions -- machine-independent
69 * section. [For machine-dependent section, see "machine/pmap.h".]
70 */
71
72#ifndef _PMAP_VM_
73#define _PMAP_VM_
65 */
66
67/*
68 * Machine address mapping definitions -- machine-independent
69 * section. [For machine-dependent section, see "machine/pmap.h".]
70 */
71
72#ifndef _PMAP_VM_
73#define _PMAP_VM_
74
75/*
76 * Each machine dependent implementation is expected to
77 * keep certain statistics. They may do this anyway they
78 * so choose, but are expected to return the statistics
79 * in the following structure.
80 */
81struct pmap_statistics {
82 long resident_count; /* # of pages mapped (total) */
83 long wired_count; /* # of pages wired */
84};
85typedef struct pmap_statistics *pmap_statistics_t;
86
87#include <machine/pmap.h>
88
89#ifdef _KERNEL
74/*
75 * Each machine dependent implementation is expected to
76 * keep certain statistics. They may do this anyway they
77 * so choose, but are expected to return the statistics
78 * in the following structure.
79 */
80struct pmap_statistics {
81 long resident_count; /* # of pages mapped (total) */
82 long wired_count; /* # of pages wired */
83};
84typedef struct pmap_statistics *pmap_statistics_t;
85
86#include <machine/pmap.h>
87
88#ifdef _KERNEL
90
91struct proc;
92struct thread;
93
94#ifdef __alpha__
95void pmap_page_is_free __P((vm_page_t m));
96#endif
97void pmap_change_wiring __P((pmap_t, vm_offset_t, boolean_t));
98void pmap_clear_modify __P((vm_page_t m));

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

142void pmap_new_thread __P((struct thread *td));
143void pmap_dispose_thread __P((struct thread *td));
144void pmap_swapout_thread __P((struct thread *td));
145void pmap_swapin_thread __P((struct thread *td));
146void pmap_activate __P((struct thread *td));
147vm_offset_t pmap_addr_hint __P((vm_object_t obj, vm_offset_t addr, vm_size_t size));
148void *pmap_kenter_temporary __P((vm_offset_t pa, int i));
149void pmap_init2 __P((void));
89struct proc;
90struct thread;
91
92#ifdef __alpha__
93void pmap_page_is_free __P((vm_page_t m));
94#endif
95void pmap_change_wiring __P((pmap_t, vm_offset_t, boolean_t));
96void pmap_clear_modify __P((vm_page_t m));

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

140void pmap_new_thread __P((struct thread *td));
141void pmap_dispose_thread __P((struct thread *td));
142void pmap_swapout_thread __P((struct thread *td));
143void pmap_swapin_thread __P((struct thread *td));
144void pmap_activate __P((struct thread *td));
145vm_offset_t pmap_addr_hint __P((vm_object_t obj, vm_offset_t addr, vm_size_t size));
146void *pmap_kenter_temporary __P((vm_offset_t pa, int i));
147void pmap_init2 __P((void));
150
151#endif /* _KERNEL */
148#endif /* _KERNEL */
152
153#endif /* _PMAP_VM_ */
149#endif /* _PMAP_VM_ */