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

1991/0606/power/mem.h (diff list | history)

1991/0605/sys/src/9/power/mem.h:12,171991/0606/sys/src/9/power/mem.h:12,18 (short | long | prev | next)
1990/0227    
#define	BY2PG		4096			/* bytes per page */ 
#define	WD2PG		(BY2PG/BY2WD)		/* words per page */ 
#define	PGSHIFT		12			/* log(BY2PG) */ 
1991/0606    
#define PGROUND(s)	(((s)+(BY2PG-1))&~(BY2PG-1)) 
1990/0227    
 
#define	MAXMACH		4			/* max # cpus system can run */ 
1990/0614    
 
1991/0605/sys/src/9/power/mem.h:18,231991/0606/sys/src/9/power/mem.h:19,25
1990/0614    
/* 
 * Time 
 */ 
1991/0606    
#define HZ		20 
1990/0614    
#define	MS2HZ		50			/* millisec per clock tick */ 
#define	TK2SEC(t)	((t)/20)		/* ticks to seconds */ 
#define	TK2MS(t)	((t)*MS2HZ)		/* ticks to milliseconds */ 
1991/0605/sys/src/9/power/mem.h:94,991991/0606/sys/src/9/power/mem.h:96,102
1990/0227    
#define	PTEGLOBL	(1<<8) 
#define	PTEVALID	(1<<9) 
#define	PTEWRITE	(1<<10) 
1991/0606    
#define PTEUNCACHE	(1<<11) 
1990/1212    
#define PTERONLY	0 
1990/0227    
#define	PTEPID(n)	((n)<<6) 
1991/0425    
#define TLBPID(n)	(((n)>>6)&0x3F) 


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