FreeBSD/sys/arm/arm/pmap-v4.c
/*
 * Initialize a preallocated and zeroed pmap structure,
 * such as one in a vmspace structure.
 */
Initialize a preallocated and zeroed pmap structure,
such as one in a vmspace structure.
Initialize a preallocated and zeroed pmap structure such as one in a vmspace structure .
int
pmap_pinit(pmap_t pmap)
{
	PDEBUG(1, printf("pmap_pinit: pmap = %08x\n", (uint32_t) pmap));
	pmap_alloc_l1(pmap);
	bzero(pmap->pm_l2, sizeof(pmap->pm_l2));
	CPU_ZERO(&pmap->pm_active);
	TAILQ_INIT(&pmap->pm_pvlist);
	bzero(&pmap->pm_stats, sizeof pmap->pm_stats);
	pmap->pm_stats.resident_count = 1;
	if (vector_page < KERNBASE) {
		pmap_enter(pmap, vector_page, PHYS_TO_VM_PAGE(systempage.pv_pa),
		    VM_PROT_READ, PMAP_ENTER_WIRED | VM_PROT_READ, 0);
	}
	return (1);
}
int pmap_pinit ( pmap_t pmap ) { PDEBUG ( 1 , printf ( " \n " , ( uint32_t ) pmap ) ) ; pmap_alloc_l1 ( pmap ) ; bzero ( pmap -> pm_l2 , sizeof ( pmap -> pm_l2 ) ) ; CPU_ZERO ( & pmap -> pm_active ) ; TAILQ_INIT ( & pmap -> pm_pvlist ) ; bzero ( & pmap -> pm_stats , sizeof pmap -> pm_stats ) ; pmap -> pm_stats . resident_count = 1 ; if ( vector_page < KERNBASE ) { pmap_enter ( pmap , vector_page , PHYS_TO_VM_PAGE ( systempage . pv_pa ) , VM_PROT_READ , PMAP_ENTER_WIRED | VM_PROT_READ , 0 ) ; } return ( 1 ) ; }
Initialize a preallocated and zeroed pmap structure,
 such as one in a vmspace structure.
Initialize a preallocated and zeroed pmap structure such as one in a vmspace structure .