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

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

1991/1210/sys/src/9/pc/mem.h:43,491991/1214/sys/src/9/pc/mem.h:43,49 (short | long | prev | next)
1991/0718    
#define	KZERO		0x80000000		/* base of kernel address space */ 
#define	KTZERO		KZERO			/* first address in kernel text */ 
#define	USERADDR	0xC0000000		/* struct User */ 
1991/0807    
#define	UREGADDR	(USERADDR+BY2PG-4*17)	 
1991/1214    
#define	UREGADDR	(USERADDR+BY2PG-4*19)	 
1991/0718    
#define	TSTKTOP		USERADDR		/* end of new stack in sysexec */ 
1991/0625    
#define TSTKSIZ 10 
1991/0718    
#define	USTKTOP		(TSTKTOP-TSTKSIZ*BY2PG)	/* byte just beyond user stack */ 
1991/1210/sys/src/9/pc/mem.h:62,691991/1214/sys/src/9/pc/mem.h:62,68
1991/0703    
#define	KESEG	2	/* kernel executable */	 
#define	UDSEG	3	/* user data/stack */ 
#define	UESEG	4	/* user executable */ 
1991/0625    
#define	SYSGATE	5	/* system call gate */ 
1991/0719    
#define TSSSEG	6	/* task segment */ 
1991/1214    
#define TSSSEG	5	/* task segment */ 
1991/0625    
 
#define SELGDT	(0<<3)	/* selector is in gdt */ 
#define	SELLDT	(1<<3)	/* selector is in ldt */ 


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