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

1998/0710/pc/i8253.c (diff list | history)

1997/0327/sys/src/9/pc/i8253.c:98,1001998/0710/sys/src/9/pc/i8253.c:98,114 (short | long | prev | next)
Add i8253read.
rsc Fri Mar 4 12:44:25 2005
1997/0327    
{ 
	intrenable(VectorCLOCK, clockintr, 0, BUSUNKNOWN); 
} 
1998/0710    
 
Lock i8253lock; 
 
/* 
 *  return time elapsed since clock start in 
 *  10ths of nanoseconds 
 */ 
uvlong 
i8253read(uvlong *hz) 
{ 
	if(hz) 
		*hz = HZ; 
	return m->ticks; 
} 


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