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

1991/1112/gnot/clock.c (diff list | history)

1991/1108/sys/src/9/gnot/clock.c:22,281991/1112/sys/src/9/gnot/clock.c:22,33 (short | long | prev | next)
1990/03091    
clock(Ureg *ur) 
{ 
	Proc *p; 
1991/1112    
	int user; 
1990/03091    
 
1991/1112    
	user = (ur->sr&SUPER) == 0; 
	if(user) 
		u->dbgreg = ur; 
 
1990/03091    
	SYNCREG[1] = 0x5F;	/* clear interrupt */ 
	m->ticks++; 
	p = m->proc; 
1991/1108/sys/src/9/gnot/clock.c:43,541991/1112/sys/src/9/gnot/clock.c:48,56
1991/0614    
			else 
				sched(); 
		} 
1991/0710    
		if((ur->sr&SUPER) == 0){ 
1991/1112    
		if(user){ 
1991/0710    
			(*(ulong*)(USTKTOP-BY2WD)) += TK2MS(1);	/* profiling clock */ 
1991/1108    
			if(u->p->procctl) 
				procctl(u->p); 
1991/0710    
			if(u->nnote) 
				notify(ur); 
1991/1112    
			notify(ur); 
1991/0710    
		} 
1990/03091    
	} 
} 


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