|
|
1.1 ! root 1: /* ! 2: * saved register offsets in the pcb ! 3: */ ! 4: ! 5: #include <sys/param.h> ! 6: ! 7: /* the quantities involving ctob() are located in the kernel stack. */ ! 8: /* the others are in the pcb. */ ! 9: #define KSP 0 ! 10: #define ESP 4 ! 11: #define SSP 8 ! 12: #define USP (ctob(UPAGES)-5*sizeof(int)) ! 13: #define R0 (ctob(UPAGES)-18*sizeof(int)) ! 14: #define R1 (ctob(UPAGES)-17*sizeof(int)) ! 15: #define R2 (ctob(UPAGES)-16*sizeof(int)) ! 16: #define R3 (ctob(UPAGES)-15*sizeof(int)) ! 17: #define R4 (ctob(UPAGES)-14*sizeof(int)) ! 18: #define R5 (ctob(UPAGES)-13*sizeof(int)) ! 19: #define R6 (ctob(UPAGES)-12*sizeof(int)) ! 20: #define R7 (ctob(UPAGES)-11*sizeof(int)) ! 21: #define R8 (ctob(UPAGES)-10*sizeof(int)) ! 22: #define R9 (ctob(UPAGES)-9*sizeof(int)) ! 23: #define R10 (ctob(UPAGES)-8*sizeof(int)) ! 24: #define R11 (ctob(UPAGES)-7*sizeof(int)) ! 25: #define AP (ctob(UPAGES)-21*sizeof(int)) ! 26: #define FP (ctob(UPAGES)-20*sizeof(int)) ! 27: #define PC (ctob(UPAGES)-2*sizeof(int)) ! 28: #define PSL (ctob(UPAGES)-1*sizeof(int)) ! 29: #define P0BR 80 ! 30: #define P0LR 84 ! 31: #define P1BR 88 ! 32: #define P1LR 92 ! 33: #define BADREG (-1) /* guaranteed not a valid reg offset */ ! 34: ! 35: #define MAXREG 11 /* biggest register number in stabs */ ! 36: #define MINREG 0 /* smallest reg number */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.