Changeset View
Changeset View
Standalone View
Standalone View
sys/arm64/arm64/pmap.c
Show First 20 Lines • Show All 1,094 Lines • ▼ Show 20 Lines | if (((tpte & ATTR_AP_RW_BIT) == ATTR_AP(ATTR_AP_RW)) || | ||||
case 3: | case 3: | ||||
default: | default: | ||||
off = 0; | off = 0; | ||||
} | } | ||||
if (vm_page_pa_tryrelock(pmap, | if (vm_page_pa_tryrelock(pmap, | ||||
(tpte & ~ATTR_MASK) | off, &pa)) | (tpte & ~ATTR_MASK) | off, &pa)) | ||||
goto retry; | goto retry; | ||||
m = PHYS_TO_VM_PAGE((tpte & ~ATTR_MASK) | off); | m = PHYS_TO_VM_PAGE((tpte & ~ATTR_MASK) | off); | ||||
vm_page_hold(m); | vm_page_wire(m); | ||||
} | } | ||||
} | } | ||||
PA_UNLOCK_COND(pa); | PA_UNLOCK_COND(pa); | ||||
PMAP_UNLOCK(pmap); | PMAP_UNLOCK(pmap); | ||||
return (m); | return (m); | ||||
} | } | ||||
vm_paddr_t | vm_paddr_t | ||||
▲ Show 20 Lines • Show All 4,307 Lines • Show Last 20 Lines |