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

Function pmap_preboot_map_pages

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

* Pre-bootstrap epoch page(s) mapping(s). */

Source from the content-addressed store, hash-verified

983 * Pre-bootstrap epoch page(s) mapping(s).
984 */
985void
986pmap_preboot_map_pages(vm_paddr_t pa, vm_offset_t va, u_int num)
987{
988 u_int i;
989 pt2_entry_t *pte2p;
990
991 /* Map all the pages. */
992 for (i = 0; i < num; i++) {
993 pte2p = pmap_preboot_vtopte2(va);
994 pte2_store(pte2p, PTE2_KRW(pa));
995 va += PAGE_SIZE;
996 pa += PAGE_SIZE;
997 }
998}
999
1000/*
1001 * Pre-bootstrap epoch virtual space alocator.

Callers 2

pmap_preboot_get_vpagesFunction · 0.85
initarmFunction · 0.85

Calls 2

pmap_preboot_vtopte2Function · 0.85
pte2_storeFunction · 0.85

Tested by

no test coverage detected