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

Function pmap_preboot_pt2_setup

freebsd/arm/arm/pmap-v6.c:950–963  ·  view source on GitHub ↗

* Setup L2 page table for given KVA. * Used in pre-bootstrap epoch. */

Source from the content-addressed store, hash-verified

948 * Used in pre-bootstrap epoch.
949 */
950static void
951pmap_preboot_pt2_setup(vm_offset_t va)
952{
953 pt1_entry_t *pte1p;
954 vm_paddr_t pt2pg_pa, pt2_pa;
955
956 /* Setup PT2's page. */
957 pt2pg_pa = pmap_preboot_pt2pg_setup(va);
958 pt2_pa = page_pt2pa(pt2pg_pa, pte1_index(va));
959
960 /* Insert PT2 to PT1. */
961 pte1p = kern_pte1(va);
962 pte1_store(pte1p, PTE1_LINK(pt2_pa));
963}
964
965/*
966 * Get L2 page entry associated with given KVA.

Callers 1

pmap_preboot_vtopte2Function · 0.85

Calls 5

pmap_preboot_pt2pg_setupFunction · 0.85
page_pt2paFunction · 0.85
pte1_indexFunction · 0.85
kern_pte1Function · 0.85
pte1_storeFunction · 0.85

Tested by

no test coverage detected