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

2002/0405/pc/dat.h (diff list | history)

2002/0404/sys/src/9/pc/dat.h:1,52002/0405/sys/src/9/pc/dat.h:1,5 (short | long | prev | next)
Rename Cycintr to Timer. In Mach, add havetsc and rename fastclock to lasttsc.
rsc Fri Mar 4 12:44:25 2005
1991/0612    
typedef struct Conf	Conf; 
2002/0404    
typedef struct Cycintr	Cycintr; 
2002/0405    
typedef struct Timer	Timer; 
1991/0702    
typedef struct FPsave	FPsave; 
1993/0915    
typedef struct ISAConf	ISAConf; 
1991/0612    
typedef struct Label	Label; 
2002/0404/sys/src/9/pc/dat.h:176,1822002/0405/sys/src/9/pc/dat.h:176,181
1991/0612    
	int	syscall; 
1991/1112    
	int	load; 
1991/0612    
	int	intr; 
1998/0725    
	vlong	fastclock;		/* last sampled value */ 
1999/0701    
	vlong	intrts;			/* time stamp of last interrupt */ 
1998/0725    
	int	flushmmu;		/* make current proc flush it's mmu state */ 
1991/0612    
 
2002/0404/sys/src/9/pc/dat.h:191,1962002/0405/sys/src/9/pc/dat.h:190,197
1997/0327    
	int	cpuiddx; 
	char	cpuidid[16]; 
	char*	cpuidtype; 
2002/0405    
	int	havetsc; 
	vlong	lasttsc;		/* last sampled value */ 
1997/0327    
 
1998/0401    
	vlong	mtrrcap; 
	vlong	mtrrdef; 
2002/0404/sys/src/9/pc/dat.h:203,2142002/0405/sys/src/9/pc/dat.h:204,215
2000/0623    
/* 
 * fasttick timer interrupts 
 */ 
struct Cycintr 
2002/0405    
struct Timer 
2000/0623    
{ 
	vlong	when;			/* fastticks when f should be called */ 
	void	(*f)(Ureg*, Cycintr*); 
2002/0405    
	void	(*f)(Ureg*, Timer*); 
2000/0623    
	void	*a; 
	Cycintr	*next; 
2002/0405    
	Timer	*next; 
2000/0623    
}; 
 
1991/0612    
/* 


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