* After removing a page table entry, this routine is used to * conditionally free the page, and manage the reference count. */
| 1065 | * conditionally free the page, and manage the reference count. |
| 1066 | */ |
| 1067 | static int |
| 1068 | pmap_unuse_pt(pmap_t pmap, vm_offset_t va, pd_entry_t pde) |
| 1069 | { |
| 1070 | vm_page_t mpte; |
| 1071 | |
| 1072 | if (va >= VM_MAXUSER_ADDRESS) |
| 1073 | return (0); |
| 1074 | KASSERT(pde != 0, ("pmap_unuse_pt: pde != 0")); |
| 1075 | mpte = PHYS_TO_VM_PAGE(MIPS_DIRECT_TO_PHYS(pde)); |
| 1076 | return (pmap_unwire_ptp(pmap, va, mpte)); |
| 1077 | } |
| 1078 | |
| 1079 | void |
| 1080 | pmap_pinit0(pmap_t pmap) |
no test coverage detected