* Inserts the specified page table page into the specified pmap's collection * of idle page table pages. Each of a pmap's page table pages is responsible * for mapping a distinct range of virtual addresses. The pmap's collection is * ordered by this virtual address range. * * If "promoted" is false, then the page table page "mpte" must be zero filled. */
| 3409 | * If "promoted" is false, then the page table page "mpte" must be zero filled. |
| 3410 | */ |
| 3411 | static __inline int |
| 3412 | pmap_insert_pt_page(pmap_t pmap, vm_page_t mpte, bool promoted) |
| 3413 | { |
| 3414 | |
| 3415 | PMAP_LOCK_ASSERT(pmap, MA_OWNED); |
| 3416 | mpte->valid = promoted ? VM_PAGE_BITS_ALL : 0; |
| 3417 | return (vm_radix_insert(&pmap->pm_root, mpte)); |
| 3418 | } |
| 3419 | |
| 3420 | /* |
| 3421 | * Removes the page table page mapping the specified virtual address from the |
no test coverage detected