MCPcopy Create free account
hub / github.com/F-Stack/f-stack / pmap_insert_pt_page

Function pmap_insert_pt_page

freebsd/arm64/arm64/pmap.c:3411–3418  ·  view source on GitHub ↗

* 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. */

Source from the content-addressed store, hash-verified

3409 * If "promoted" is false, then the page table page "mpte" must be zero filled.
3410 */
3411static __inline int
3412pmap_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

Callers 2

pmap_promote_l2Function · 0.70
pmap_enter_l2Function · 0.70

Calls 1

vm_radix_insertFunction · 0.85

Tested by

no test coverage detected