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

1991/0710/pc/mem.h (diff list | history)

1991/0710/sys/src/9/pc/mem.h:10,161991/0711/sys/src/9/pc/mem.h:10,16 (short | long | prev | next)
1991/0625    
#define	BY2WD		4			/* bytes per word */ 
#define	BY2PG		4096			/* bytes per page */ 
#define	WD2PG		(BY2PG/BY2WD)		/* words per page */ 
#define	PGSHIFT		13			/* log(BY2PG) */ 
1991/0711    
#define	PGSHIFT		12			/* log(BY2PG) */ 
1991/0625    
#define PGROUND(s)	(((s)+(BY2PG-1))&~(BY2PG-1)) 
 
#define	MAXMACH		1			/* max # cpus system can run */ 
1991/0710/sys/src/9/pc/mem.h:47,531991/0711/sys/src/9/pc/mem.h:47,53
1991/0625    
 
#define	MACHSIZE	4096 
 
#define isphys(x) ((x)&KZERO) 
1991/0711    
#define isphys(x) (((ulong)x)&KZERO) 
1991/0625    
 
1991/0613    
/* 
1991/0706    
 *  known 80386 segments (in GDT) and their selectors 
1991/0710/sys/src/9/pc/mem.h:101,1111991/0711/sys/src/9/pc/mem.h:101,111
1991/0706    
#define PTEMAPMEM	(1024*1024)	/* ??? */	 
#define SEGMAPSIZE	16		/* ??? */ 
#define	PTEPERTAB	(PTEMAPMEM/BY2PG)	/* ??? */ 
1991/0711    
#define PPN(x)		((x)&~(BY2PG-1)) 
1991/0710    
 
/* 
 *  physical MMU 
 */ 
#define PPN(x)		((x)&~(BY2PG-1)) 
#define	PTEVALID	(1<<0) 
#define	PTEUNCACHED	0		/* everything is uncached */ 
#define PTEWRITE	(1<<1) 


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