FreeBSD/sys/arm/arm/pmap-v4.c
/*
 *      Initialize the pmap module.
 *      Called by vm_init, to initialize any structures that the pmap
 *      system needs to map virtual memory.
 */
Initialize the pmap module.
Called by vm_init, to initialize any structures that the pmap
system needs to map virtual memory.
Initialize the pmap module . Called by vm_init to initialize any structures that the pmap system needs to map virtual memory .
void
pmap_init(void)
{
	int shpgperproc = PMAP_SHPGPERPROC;
	l2zone = uma_zcreate("L2 Table", L2_TABLE_SIZE_REAL, pmap_l2ptp_ctor,
	    NULL, NULL, NULL, UMA_ALIGN_PTR, UMA_ZONE_VM | UMA_ZONE_NOFREE);
	l2table_zone = uma_zcreate("L2 Table", sizeof(struct l2_dtable), NULL,
	    NULL, NULL, NULL, UMA_ALIGN_PTR, UMA_ZONE_VM | UMA_ZONE_NOFREE);
	pvzone = uma_zcreate("PV ENTRY", sizeof (struct pv_entry), NULL, NULL,
	    NULL, NULL, UMA_ALIGN_PTR, UMA_ZONE_VM | UMA_ZONE_NOFREE);
	TUNABLE_INT_FETCH("vm.pmap.shpgperproc", &shpgperproc);
	pv_entry_max = shpgperproc * maxproc + vm_cnt.v_page_count;
	uma_zone_reserve_kva(pvzone, pv_entry_max);
	pv_entry_high_water = 9 * (pv_entry_max / 10);
	PDEBUG(1, printf("pmap_init: done!\n"));
}
void pmap_init ( void ) { int shpgperproc = PMAP_SHPGPERPROC ; l2zone = uma_zcreate ( " " , L2_TABLE_SIZE_REAL , pmap_l2ptp_ctor , NULL , NULL , NULL , UMA_ALIGN_PTR , UMA_ZONE_VM | UMA_ZONE_NOFREE ) ; l2table_zone = uma_zcreate ( " " , sizeof ( struct l2_dtable ) , NULL , NULL , NULL , NULL , UMA_ALIGN_PTR , UMA_ZONE_VM | UMA_ZONE_NOFREE ) ; pvzone = uma_zcreate ( " " , sizeof ( struct pv_entry ) , NULL , NULL , NULL , NULL , UMA_ALIGN_PTR , UMA_ZONE_VM | UMA_ZONE_NOFREE ) ; TUNABLE_INT_FETCH ( " " , & shpgperproc ) ; pv_entry_max = shpgperproc * maxproc + vm_cnt . v_page_count ; uma_zone_reserve_kva ( pvzone , pv_entry_max ) ; pv_entry_high_water = 9 * ( pv_entry_max / 10 ) ; PDEBUG ( 1 , printf ( " \n " ) ) ; }
Initialize the pmap module.
Initialize the pmap module .
/*
	 * Initialize the PV entry allocator.
	 */ /*
	 * Now it is safe to enable pv_table recording.
	 */