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

1991/0711/pc/clock.c (diff list | history)

1991/0709/sys/src/9/pc/clock.c:43,541991/0711/sys/src/9/pc/clock.c:43,56 (short | long | prev | next)
1991/0706    
clock(Ureg *ur) 
1991/0705    
{ 
1991/0706    
	Proc *p; 
1991/0709    
	static int last; 
1991/0706    
 
1991/0705    
	m->ticks++; 
1991/0711    
 
	checkalarms(); 
 
1991/0706    
	p = m->proc; 
	if(p){ 
		p->pc = ur->eip; 
1991/0711    
		p->pc = ur->pc; 
1991/0706    
		if (p->state==Running) 
			p->time[p->insyscall]++; 
	} 


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