1#define P_LINK 0 2#define P_RLINK 4 3#define P_VMSPACE 28 4#define VM_PMAP 88 5#define P_ADDR 184 6#define P_PRI 144 7#define P_STAT 40 8#define P_WCHAN 76 9#define P_FLAG 36 10#define P_PID 42 11#define SSLEEP 1 12#define SRUN 3 13#define V_SWTCH 0 14#define V_TRAP 4 15#define V_SYSCALL 8 16#define V_INTR 12 17#define V_SOFT 16 18#define V_PDMA 20 19#define V_FAULTS 92 20#define KERNBASE 0xfe000000 21#define USZ 1196 22#define UPAGES 2 23#define CLSIZE 1 24#define NBPG 4096 25#define NPTEPG 1024 26#define PGSHIFT 12 27#define USRSTACK -37748736 28#define MSGBUFPTECNT 1 29#define NMBCLUSTERS 256 30#define MCLBYTES 2048 31#define NKMEMCLUSTERS 1024 32#define PR_BASE 0 33#define PR_SIZE 4 34#define PR_OFF 8 35#define PR_SCALE 12 36#define RU_MINFLT 32 37#define B_READ 1 38#define ENOENT 2 39#define EFAULT 14 40#define ENAMETOOLONG 63 41#define PMD_FLAGS 188 42#define PMD_TSEL 196 43#define PMD_ONFAULT 200 44#define MDP_AST 1 45#define MDP_RESCHED 2 46#define PCB_LINK 0 47#define PCB_ESP0 4 48#define PCB_SS0 8 49#define PCB_ESP1 12 50#define PCB_SS1 16 51#define PCB_ESP2 20 52#define PCB_SS2 24 53#define PCB_CR3 28 54#define PCB_EIP 32 55#define PCB_EFLAGS 36 56#define PCB_EAX 40 57#define PCB_ECX 44 58#define PCB_EDX 48 59#define PCB_EBX 52 60#define PCB_ESP 56 61#define PCB_EBP 60 62#define PCB_ESI 64 63#define PCB_EDI 68 64#define PCB_ES 72 65#define PCB_CS 76 66#define PCB_SS 80 67#define PCB_DS 84 68#define PCB_FS 88 69#define PCB_GS 92 70#define PCB_LDT 96 71#define PCB_IOOPT 100 72#define PCB_FLAGS 368 73#define PCB_SAVEFPU 104 74#define FP_WASUSED 1 75#define FP_NEEDSSAVE 2 76#define FP_NEEDSRESTORE 4 77#define PCB_TSS_SEL 372 78#define PCB_ONFAULT 376 79