plan 9 kernel history: overview | file list | diff list

1991/0705/power/mmu.c (diff list | history)

1991/0507/sys/src/9/power/mmu.c:13,181991/0705/sys/src/9/power/mmu.c:13,24 (short | long | prev | next)
1990/0227    
	short tp; 
	ulong tlbvirt, tlbphys; 
 
1991/0705    
	if(p->newtlb) { 
		/* see flushmmu. */ 
		memset(p->pidonmach, 0, sizeof p->pidonmach); 
		p->newtlb = 0; 
	} 
 
1990/0227    
	tp = p->pidonmach[m->machno]; 
1991/0430    
	if(tp == 0) 
1990/0227    
		tp = newtlbpid(p); 
1991/0507/sys/src/9/power/mmu.c:70,811991/0705/sys/src/9/power/mmu.c:76,96
1990/0227    
} 
 
void 
putmmu(ulong tlbvirt, ulong tlbphys) 
1991/0705    
putmmu(ulong tlbvirt, ulong tlbphys, Page *pg) 
1990/0227    
{ 
	short tp; 
	Proc *p; 
1991/0705    
	char *ctl; 
1990/0227    
 
	splhi(); 
1991/0705    
 
	ctl = &pg->cachectl[m->machno];  
	if(*ctl == PG_TXTFLUSH) { 
		dcflush((void*)pg->pa, BY2PG); 
		icflush((void*)pg->pa, BY2PG); 
		*ctl = PG_NOFLUSH; 
	} 
 
1990/0227    
	p = u->p; 
/*	if(p->state != Running) 
		panic("putmmu state %lux %lux %s\n", u, p, statename[p->state]); 


source code copyright © 1990-2005 Lucent Technologies; see license
Plan 9 distribution
comments to russ cox (rsc@swtch.com)