FreeBSD/sys/powerpc/aim/mmu_oea.c
/*
 * Map the given physical page at the specified virtual address in the
 * target pmap with the protection requested.  If specified the page
 * will be wired down.
 */
Map the given physical page at the specified virtual address in the
target pmap with the protection requested.  If specified the page
will be wired down.
Map the given physical page at the specified virtual address in the target pmap with the protection requested . If specified the page will be wired down .
int
moea_enter(mmu_t mmu, pmap_t pmap, vm_offset_t va, vm_page_t m, vm_prot_t prot,
    u_int flags, int8_t psind)
{
	int error;
	for (;;) {
		rw_wlock(&pvh_global_lock);
		PMAP_LOCK(pmap);
		error = moea_enter_locked(pmap, va, m, prot, flags, psind);
		rw_wunlock(&pvh_global_lock);
		PMAP_UNLOCK(pmap);
		if (error != ENOMEM)
			return (KERN_SUCCESS);
		if ((flags & PMAP_ENTER_NOSLEEP) != 0)
			return (KERN_RESOURCE_SHORTAGE);
		VM_OBJECT_ASSERT_UNLOCKED(m->object);
		VM_WAIT;
	}
}
int moea_enter ( mmu_t mmu , pmap_t pmap , vm_offset_t va , vm_page_t m , vm_prot_t prot , u_int flags , int8_t psind ) { int error ; for ( ; ; ) { rw_wlock ( & pvh_global_lock ) ; PMAP_LOCK ( pmap ) ; error = moea_enter_locked ( pmap , va , m , prot , flags , psind ) ; rw_wunlock ( & pvh_global_lock ) ; PMAP_UNLOCK ( pmap ) ; if ( error != ENOMEM ) return ( KERN_SUCCESS ) ; if ( ( flags & PMAP_ENTER_NOSLEEP ) != 0 ) return ( KERN_RESOURCE_SHORTAGE ) ; VM_OBJECT_ASSERT_UNLOCKED ( m -> object ) ; VM_WAIT ; } }
Map the given physical page at the specified virtual address in the
 target pmap with the protection requested.
Map the given physical page at the specified virtual address in the target pmap with the protection requested .