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

1991/0926/gnot/mmu.c (diff list | history)

1991/0828/sys/src/9/gnot/mmu.c:143,1541991/0926/sys/src/9/gnot/mmu.c:143,148 (short | long | prev | next)
1990/06021    
kmap(Page *pg) 
{ 
	KMap *k; 
1991/0828    
	int s = 0; 
1990/06021    
                 
1991/0828    
	if(u) { 
		s = u->p->state; 
		u->p->state = MMUing; 
	} 
	 
1990/06021    
	lock(&kmapalloc); 
	k = kmapalloc.free; 
1991/0828/sys/src/9/gnot/mmu.c:161,1681991/0926/sys/src/9/gnot/mmu.c:155,160
1991/0821    
 
1990/06021    
	k->pa = pg->pa; 
	putkmmu(k->va, PPN(k->pa) | PTEVALID | PTEKERNEL); 
1991/0828    
	if(s) 
		u->p->state = s; 
 
1990/06021    
	return k; 
} 


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