Deleted Added
full compact
mmu_if.m (159627) mmu_if.m (160889)
1#-
2# Copyright (c) 2005 Peter Grehan
3# All rights reserved.
4#
5# Redistribution and use in source and binary forms, with or without
6# modification, are permitted provided that the following conditions
7# are met:
8# 1. Redistributions of source code must retain the above copyright

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

18# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24# SUCH DAMAGE.
25#
1#-
2# Copyright (c) 2005 Peter Grehan
3# All rights reserved.
4#
5# Redistribution and use in source and binary forms, with or without
6# modification, are permitted provided that the following conditions
7# are met:
8# 1. Redistributions of source code must retain the above copyright

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

18# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24# SUCH DAMAGE.
25#
26# $FreeBSD: head/sys/powerpc/powerpc/mmu_if.m 159627 2006-06-15 01:01:06Z ups $
26# $FreeBSD: head/sys/powerpc/powerpc/mmu_if.m 160889 2006-08-01 19:06:06Z alc $
27#
28
29#include <sys/param.h>
30#include <sys/lock.h>
31#include <sys/mutex.h>
32#include <sys/systm.h>
33
34#include <vm/vm.h>

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

142 */
143METHOD void clear_reference {
144 mmu_t _mmu;
145 vm_page_t _pg;
146};
147
148
149/**
27#
28
29#include <sys/param.h>
30#include <sys/lock.h>
31#include <sys/mutex.h>
32#include <sys/systm.h>
33
34#include <vm/vm.h>

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

142 */
143METHOD void clear_reference {
144 mmu_t _mmu;
145 vm_page_t _pg;
146};
147
148
149/**
150 * @brief Clear the write and modified bits in each of the given
151 * physical page's mappings
152 *
153 * @param _pg physical page
154 */
155METHOD void remove_write {
156 mmu_t _mmu;
157 vm_page_t _pg;
158};
159
160
161/**
150 * @brief Copy the address range given by the source physical map, virtual
151 * address and length to the destination physical map and virtual address.
152 * This routine is optional (xxx default null implementation ?)
153 *
154 * @param _dst_pmap destination physical map
155 * @param _src_pmap source physical map
156 * @param _dst_addr destination virtual address
157 * @param _len size of range

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

414 */
415METHOD void page_init {
416 mmu_t _mmu;
417 vm_page_t _pg;
418} DEFAULT mmu_null_page_init;
419
420
421/**
162 * @brief Copy the address range given by the source physical map, virtual
163 * address and length to the destination physical map and virtual address.
164 * This routine is optional (xxx default null implementation ?)
165 *
166 * @param _dst_pmap destination physical map
167 * @param _src_pmap source physical map
168 * @param _dst_addr destination virtual address
169 * @param _len size of range

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

426 */
427METHOD void page_init {
428 mmu_t _mmu;
429 vm_page_t _pg;
430} DEFAULT mmu_null_page_init;
431
432
433/**
422 * @brief Lower the protection to the given value for all mappings of the
423 * given physical page.
424 *
425 * @param _pg physical page
426 * @param _prot updated page protection
427 */
428METHOD void page_protect {
429 mmu_t _mmu;
430 vm_page_t _pg;
431 vm_prot_t _prot;
432};
433
434
435/**
436 * @brief Initialise a physical map data structure
437 *
438 * @param _pmap physical map
439 */
440METHOD void pinit {
441 mmu_t _mmu;
442 pmap_t _pmap;
443};

--- 313 unchanged lines hidden ---
434 * @brief Initialise a physical map data structure
435 *
436 * @param _pmap physical map
437 */
438METHOD void pinit {
439 mmu_t _mmu;
440 pmap_t _pmap;
441};

--- 313 unchanged lines hidden ---