FreeBSD/sys/arm/arm/pmap-v6.c
/*
 *  Setup L2 page table for given KVA.
 *  Used in pre-bootstrap epoch.
 */
Setup L2 page table for given KVA.
Used in pre-bootstrap epoch.
Setup L2 page table for given KVA . Used in pre - bootstrap epoch .
static void
pmap_preboot_pt2_setup(vm_offset_t va)
{
	pt1_entry_t *pte1p;
	vm_paddr_t pt2pg_pa, pt2_pa;
	pt2pg_pa = pmap_preboot_pt2pg_setup(va);
	pt2_pa = page_pt2pa(pt2pg_pa, pte1_index(va));
	pte1p = kern_pte1(va);
	pte1_store(pte1p, PTE1_LINK(pt2_pa));
}
static void pmap_preboot_pt2_setup ( vm_offset_t va ) { pt1_entry_t * pte1p ; vm_paddr_t pt2pg_pa , pt2_pa ; pt2pg_pa = pmap_preboot_pt2pg_setup ( va ) ; pt2_pa = page_pt2pa ( pt2pg_pa , pte1_index ( va ) ) ; pte1p = kern_pte1 ( va ) ; pte1_store ( pte1p , PTE1_LINK ( pt2_pa ) ) ; }
Setup L2 page table for given KVA.
Setup L2 page table for given KVA .
/* Setup PT2's page. */ /* Insert PT2 to PT1. */