| plan 9 kernel history: overview | file list | diff list |
1991/0718/pc/mem.h (diff list | history)
| 1991/0717/sys/src/9/pc/mem.h:27,49 – 1991/0718/sys/src/9/pc/mem.h:27,54 (short | long | prev | next) | ||
| 1991/0613 | /* | |
| 1991/0625 | * Fundamental addresses | |
| 1991/0613 | */ | |
| 1991/0625 |
| |
| 1991/0613 | /* | |
| 1991/0625 |
| |
| 1991/0718 | * Address spaces | |
| 1991/0625 | * | |
| 1991/0718 | * User is at 0-2GB * Kernel is at 2GB-4GB * * To avoid an extra page map, both the user stack (USTKTOP) and * the temporary user stack (TSTKTOP) should be in the the same * 4 meg. | |
| 1991/0613 | */ | |
| 1991/0625 |
| |
| 1991/0718 | #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 */ #define KTZERO KZERO /* first address in kernel text */ #define USERADDR 0xC0000000 /* struct User */ #define UREGADDR (USERADDR+BY2PG-4*16) #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 */ #define USTKSIZE (4*1024*1024 - TSTKSIZ*BY2PG) /* size of user stack */ #define USTKBTM USTKTOP - USTKSIZE | |
| 1991/0625 | #define MACHSIZE 4096 | |