mmu_oea.c (208990) | mmu_oea.c (209048) |
---|---|
1/*- 2 * Copyright (c) 2001 The NetBSD Foundation, Inc. 3 * All rights reserved. 4 * 5 * This code is derived from software contributed to The NetBSD Foundation 6 * by Matt Thomas <matt@3am-software.com> of Allegro Networks, Inc. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 77 unchanged lines hidden (view full) --- 86 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 87 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 88 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 89 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 90 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 91 */ 92 93#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2001 The NetBSD Foundation, Inc. 3 * All rights reserved. 4 * 5 * This code is derived from software contributed to The NetBSD Foundation 6 * by Matt Thomas <matt@3am-software.com> of Allegro Networks, Inc. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 77 unchanged lines hidden (view full) --- 86 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 87 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 88 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 89 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 90 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 91 */ 92 93#include <sys/cdefs.h> |
94__FBSDID("$FreeBSD: head/sys/powerpc/aim/mmu_oea.c 208990 2010-06-10 16:56:35Z alc $"); | 94__FBSDID("$FreeBSD: head/sys/powerpc/aim/mmu_oea.c 209048 2010-06-11 15:49:39Z alc $"); |
95 96/* 97 * Manages physical address maps. 98 * 99 * In addition to hardware address maps, this module is called upon to 100 * provide software-use-only maps which may or may not be stored in the 101 * same form as hardware maps. These pseudo-maps are used to store 102 * intermediate results from copy operations to and from address spaces. --- 994 unchanged lines hidden (view full) --- 1097 pg = m; 1098 zone = moea_mpvo_zone; 1099 pvo_flags = PVO_MANAGED; 1100 was_exec = 0; 1101 } 1102 if (pmap_bootstrapped) 1103 mtx_assert(&vm_page_queue_mtx, MA_OWNED); 1104 PMAP_LOCK_ASSERT(pmap, MA_OWNED); | 95 96/* 97 * Manages physical address maps. 98 * 99 * In addition to hardware address maps, this module is called upon to 100 * provide software-use-only maps which may or may not be stored in the 101 * same form as hardware maps. These pseudo-maps are used to store 102 * intermediate results from copy operations to and from address spaces. --- 994 unchanged lines hidden (view full) --- 1097 pg = m; 1098 zone = moea_mpvo_zone; 1099 pvo_flags = PVO_MANAGED; 1100 was_exec = 0; 1101 } 1102 if (pmap_bootstrapped) 1103 mtx_assert(&vm_page_queue_mtx, MA_OWNED); 1104 PMAP_LOCK_ASSERT(pmap, MA_OWNED); |
1105 KASSERT((m->oflags & VPO_BUSY) != 0 || VM_OBJECT_LOCKED(m->object), | 1105 KASSERT((m->flags & (PG_FICTITIOUS | PG_UNMANAGED)) != 0 || 1106 (m->oflags & VPO_BUSY) != 0 || VM_OBJECT_LOCKED(m->object), |
1106 ("moea_enter_locked: page %p is not busy", m)); 1107 1108 /* XXX change the pvo head for fake pages */ 1109 if ((m->flags & PG_FICTITIOUS) == PG_FICTITIOUS) { 1110 pvo_flags &= ~PVO_MANAGED; 1111 pvo_head = &moea_pvo_kunmanaged; 1112 zone = moea_upvo_zone; 1113 } --- 1386 unchanged lines hidden --- | 1107 ("moea_enter_locked: page %p is not busy", m)); 1108 1109 /* XXX change the pvo head for fake pages */ 1110 if ((m->flags & PG_FICTITIOUS) == PG_FICTITIOUS) { 1111 pvo_flags &= ~PVO_MANAGED; 1112 pvo_head = &moea_pvo_kunmanaged; 1113 zone = moea_upvo_zone; 1114 } --- 1386 unchanged lines hidden --- |