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

2000/0516/mpc/mem.h (diff list | history)

1999/0812/sys/src/9/mpc/mem.h:83,952000/0516/sys/src/9/mpc/mem.h:83,89 (short | long | prev | next)
1999/0121    
#define	MACH		30		/* R30 is m-> */ 
#define	USER		29		/* R29 is up-> */ 
 
/* 
 * Fundamental addresses 
 */ 
#define	MACHADDR	((long)&mach0) 
 
#define	UREGSIZE	((8+32)*4) 
                 
/* 
 *  virtual MMU 
 */ 
1999/0812/sys/src/9/mpc/mem.h:100,1092000/0516/sys/src/9/mpc/mem.h:94,110
1999/0121    
#define PPN(x)		((x)&~(BY2PG-1)) 
 
/* 
2000/0516    
 * Fundamental addresses 
 */ 
#define	MACHADDR	(KTZERO-MAXMACH*MACHSIZE) 
#define	MACHP(n)	((Mach *)(MACHADDR+(n)*MACHSIZE)) 
 
#define	UREGSIZE	((8+32)*4) 
 
/* 
1999/0121    
 * MMU 
 */ 
 
1999/0126    
#ifdef notdef 
1999/0121    
/* L1 table entry and Mx_TWC flags */ 
#define PTEWT		(1<<1)	/* write through */ 
#define PTE4K		(0<<2) 
1999/0812/sys/src/9/mpc/mem.h:119,1292000/0516/sys/src/9/mpc/mem.h:120,137
1999/0121    
#define	PTEKERNEL	(0<<2) 
#define	PTEUSER		(1<<2) 
#define PTESIZE		(1<<7) 
1999/0126    
#endif 
2000/0516    
 
#define	NTLBPID		16 
#define	TLBPID(n)	((n)&(NTLBPID-1)) 
 
/* soft tlb */ 
#define	STLBLOG		12 
#define	STLBSIZE	(1<<STLBLOG) 
 
1999/0126    
/* 
 *  portable MMU bits for fault.c - though still machine specific 
 */ 
1999/0608    
#define PTEVALID	(MMUPP|MMUSH|MMUV) 
2000/0516    
#define PTEVALID	(MMUPP|MMUV) 
1999/0126    
#define PTEWRITE	(2<<10) 
#define	PTERONLY	(3<<10) 
#define	PTEUNCACHED	(1<<4) 
1999/0812/sys/src/9/mpc/mem.h:167,1922000/0516/sys/src/9/mpc/mem.h:175,200
1999/0121    
#define	UZERO		0			/* base of user address space */ 
#define	UTZERO		(UZERO+BY2PG)		/* first address in user text */ 
#define	KZERO		0x80000000		/* base of kernel address space */ 
1999/0812    
#define	KTZERO		0xffc00000		/* first address in kernel text */ 
2000/0516    
#define	KTZERO		0x80010000		/* first address in kernel text */ 
1999/0121    
#define	USTKTOP		(KZERO-BY2PG)		/* byte just beyond user stack */ 
#define	USTKSIZE	(16*1024*1024)		/* size of user stack */ 
#define	TSTKTOP		(USTKTOP-USTKSIZE)	/* end of new stack in sysexec */ 
#define TSTKSIZ 	100 
2000/0516    
#define	CONFPARSED	(KZERO+0x2000) 
1999/0121    
 
#define	INTMEM		0x80000000 
1999/0609    
#define	ISAMEM		0x80100000 
#define	FLASHMEM	0xff000000 
2000/0516    
#define	INTMEM		0xff000000 
#define	ISAMEM		0xfe000000 
#define	FLASHMEM	0xff200000 
1999/0618    
#define	SACMEM		FLASHMEM + 0x80000 
1999/0608    
#define	NVRAMMEM	0x80600000 
1999/0609    
#define DRAMMEM		0xff800000		/* to 0xffffffff: 8 Meg */ 
2000/0516    
#define	NVRAMMEM	0xfc000000 
#define DRAMMEM		0x80000000 
1999/0121    
 
#define	SIRAM	(INTMEM+0xC00) 
#define	LCDCOLR	(INTMEM+0xE00) 
#define	DPRAM	(INTMEM+0x2000) 
#define	DPLEN1	0x200 
#define	DPLEN2	0x400 
#define	DPLEN3	0x800 
#define	DPBASE	(DPRAM+DPLEN1) 
2000/0516    
#define	DPBASE	(DPRAM+DPLEN3) 
1999/0121    
 
#define	SCC1P	(INTMEM+0x3C00) 
#define	I2CP	(INTMEM+0x3C80) 


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