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

1999/0608/mpc/mmu.c (diff list | history)

1999/0128/sys/src/9/mpc/mmu.c:34,441999/0608/sys/src/9/mpc/mmu.c:34,65 (short | long | prev | next)
1999/0121    
 
 
1999/0127    
void 
putmmu(ulong va, ulong pa, Page*) 
1999/0608    
putmmu(ulong va, ulong pa, Page *pg) 
1999/0127    
{ 
	int x, r; 
1999/0608    
	char *ctl; 
 
//if((va&0x8000000) == 0) 
1999/0128    
//print("putmmu va=%ux pa=%ux\n", va, pa); 
1999/0127    
	x = splhi(); 
	r = _putmmu(va, pa); 
1999/0608    
 
	ctl = &pg->cachectl[m->machno]; 
	switch(*ctl) { 
	default: 
		panic("putmmu: %d\n", *ctl); 
		break; 
	case PG_NOFLUSH: 
		break; 
	case PG_TXTFLUSH: 
		icflush((void*)pg->va, BY2PG); 
		*ctl = PG_NOFLUSH; 
		break; 
	case PG_NEWCOL: 
		dcflush((void*)pg->va, BY2PG); 
		*ctl = PG_NOFLUSH; 
		break; 
	} 
 
1999/0127    
	splx(x); 
} 


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