* After removing a page table entry, this routine is used to * conditionally free the page, and manage the reference count. */
| 4028 | * conditionally free the page, and manage the reference count. |
| 4029 | */ |
| 4030 | static int |
| 4031 | pmap_unuse_pt(pmap_t pmap, vm_offset_t va, pd_entry_t ptepde, |
| 4032 | struct spglist *free) |
| 4033 | { |
| 4034 | vm_page_t mpte; |
| 4035 | |
| 4036 | if (va >= VM_MAXUSER_ADDRESS) |
| 4037 | return (0); |
| 4038 | KASSERT(ptepde != 0, ("pmap_unuse_pt: ptepde != 0")); |
| 4039 | mpte = PHYS_TO_VM_PAGE(ptepde & PG_FRAME); |
| 4040 | return (pmap_unwire_ptp(pmap, va, mpte, free)); |
| 4041 | } |
| 4042 | |
| 4043 | /* |
| 4044 | * Release a page table page reference after a failed attempt to create a |
no test coverage detected