* 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. */
| 1932 | * If "promoted" is false, then the page table page "mpte" must be zero filled. |
| 1933 | */ |
| 1934 | static __inline int |
| 1935 | pmap_insert_pt_page(pmap_t pmap, vm_page_t mpte, bool promoted) |
| 1936 | { |
| 1937 | |
| 1938 | PMAP_LOCK_ASSERT(pmap, MA_OWNED); |
| 1939 | mpte->valid = promoted ? VM_PAGE_BITS_ALL : 0; |
| 1940 | return (vm_radix_insert(&pmap->pm_root, mpte)); |
| 1941 | } |
| 1942 | |
| 1943 | /* |
| 1944 | * Removes the page table page mapping the specified virtual address from the |
no test coverage detected