UVMHIST_LOG(maphist, "<- new entry=0x%x [kentry=%d]", me, ((map->flags & VM_MAP_INTRSAFE) != 0 || map == kernel_map) ? TRUE : FALSE, 0, 0);
UVMHIST_LOG(maphist, "<- new entry=0x%x [kentry=%d]", me, ((map->flags & VM_MAP_INTRSAFE) != 0 || map == kernel_map), 0, 0);
uvm_mapent_alloc(map)	struct vm_map *map;{	struct vm_map_entry *me;	int s;	UVMHIST_FUNC("uvm_mapent_alloc");	UVMHIST_CALLED(maphist);	if ((map->flags & VM_MAP_INTRSAFE) == 0 &&	    map != kernel_map && kernel_map != NULL /* XXX */) {		me = pool_get(&uvm_map_entry_pool, PR_WAITOK);		me->flags = 0;		/* me can't be null, wait ok */	} else {		s = splvm();	/* protect kentry_free list with splvm */		simple_lock(&uvm.kentry_lock);		me = uvm.kentry_free;		if (me) uvm.kentry_free = me->next;		simple_unlock(&uvm.kentry_lock);		splx(s);		if (!me)	panic("mapent_alloc: out of static map entries, check MAX_KMAPENT");		me->flags = UVM_MAP_STATIC;	}	UVMHIST_LOG(maphist, "<- new entry=0x%x [kentry=%d]",		me, ((map->flags & VM_MAP_INTRSAFE) != 0 || map == kernel_map)		? TRUE : FALSE, 0, 0);	return(me);}