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

1990/08101/gnot/mem.h (diff list | history)

1990/06111/sys/src/9/gnot/mem.h:18,271990/08101/sys/src/9/gnot/mem.h:18,28 (short | long | prev | next)
1990/06111    
/* 
 * Time 
 */ 
#define	MS2HZ		(1000/60)		/* millisec per clock tick */ 
#define	TK2SEC(t)	((t)/60)		/* ticks to seconds */ 
#define	TK2MS(t)	(((t)*1000)/60)		/* ticks to milliseconds */ 
#define	MS2TK(t)	(((t)*60)/1000)		/* milliseconds to ticks */ 
1990/08101    
#define	HZ		(60)			/* clock frequency */ 
#define	MS2HZ		(1000/HZ)		/* millisec per clock tick */ 
#define	TK2SEC(t)	((t)/HZ)		/* ticks to seconds */ 
#define	TK2MS(t)	(((t)*1000)/HZ)		/* ticks to milliseconds */ 
#define	MS2TK(t)	(((t)*HZ)/1000)		/* milliseconds to ticks */ 
1990/03091    
 
/* 
 * SR bits 
1990/06111/sys/src/9/gnot/mem.h:59,641990/08101/sys/src/9/gnot/mem.h:60,66
1990/03091    
 * MMU 
 */ 
 
1990/08101    
#define	VAMASK	0xCFFFFFFF	/* clear balu bits in address */ 
1990/03091    
#define	KUSEG	0x00000000 
#define KSEG	0x80000000 
 


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