|
|
1.1 ! root 1: /* param.h 6.1 83/07/29 */ ! 2: ! 3: /* ! 4: * Machine dependent constants for vax. ! 5: */ ! 6: #define NBPG 512 /* bytes/page */ ! 7: #define PGOFSET (NBPG-1) /* byte offset into page */ ! 8: #define PGSHIFT 9 /* LOG2(NBPG) */ ! 9: ! 10: #define CLSIZE 2 ! 11: #define CLSIZELOG2 1 ! 12: ! 13: #define SSIZE 4 /* initial stack size/NBPG */ ! 14: #define SINCR 4 /* increment of stack/NBPG */ ! 15: ! 16: #define UPAGES 8 /* pages of u-area */ ! 17: ! 18: /* ! 19: * Some macros for units conversion ! 20: */ ! 21: /* Core clicks (512 bytes) to segments and vice versa */ ! 22: #define ctos(x) (x) ! 23: #define stoc(x) (x) ! 24: ! 25: /* Core clicks (512 bytes) to disk blocks */ ! 26: #define ctod(x) (x) ! 27: #define dtoc(x) (x) ! 28: #define dtob(x) ((x)<<9) ! 29: ! 30: /* clicks to bytes */ ! 31: #define ctob(x) ((x)<<9) ! 32: ! 33: /* bytes to clicks */ ! 34: #define btoc(x) ((((unsigned)(x)+511)>>9)) ! 35: ! 36: /* ! 37: * Macros to decode processor status word. ! 38: */ ! 39: #define USERMODE(ps) (((ps) & PSL_CURMOD) == PSL_CURMOD) ! 40: #define BASEPRI(ps) (((ps) & PSL_IPL) == 0) ! 41: ! 42: #define DELAY(n) { register int N = (n); while (--N > 0); }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.