Changeset View
Changeset View
Standalone View
Standalone View
head/sys/powerpc/aim/mmu_oea.c
Show First 20 Lines • Show All 1,118 Lines • ▼ Show 20 Lines | for (;;) { | ||||
error = moea_enter_locked(pmap, va, m, prot, flags, psind); | error = moea_enter_locked(pmap, va, m, prot, flags, psind); | ||||
rw_wunlock(&pvh_global_lock); | rw_wunlock(&pvh_global_lock); | ||||
PMAP_UNLOCK(pmap); | PMAP_UNLOCK(pmap); | ||||
if (error != ENOMEM) | if (error != ENOMEM) | ||||
return (KERN_SUCCESS); | return (KERN_SUCCESS); | ||||
if ((flags & PMAP_ENTER_NOSLEEP) != 0) | if ((flags & PMAP_ENTER_NOSLEEP) != 0) | ||||
return (KERN_RESOURCE_SHORTAGE); | return (KERN_RESOURCE_SHORTAGE); | ||||
VM_OBJECT_ASSERT_UNLOCKED(m->object); | VM_OBJECT_ASSERT_UNLOCKED(m->object); | ||||
VM_WAIT; | vm_wait(NULL); | ||||
} | } | ||||
} | } | ||||
/* | /* | ||||
* Map the given physical page at the specified virtual address in the | * Map the given physical page at the specified virtual address in the | ||||
* target pmap with the protection requested. If specified the page | * target pmap with the protection requested. If specified the page | ||||
* will be wired down. | * will be wired down. | ||||
* | * | ||||
▲ Show 20 Lines • Show All 1,645 Lines • Show Last 20 Lines |