1*9600Ssam /* param.h 4.2 82/12/09 */ 29118Ssam 39118Ssam /* 49118Ssam * Machine dependent constants for vax. 59118Ssam */ 69118Ssam #define NBPG 512 /* bytes/page */ 79118Ssam #define PGOFSET (NBPG-1) /* byte offset into page */ 89118Ssam #define PGSHIFT 9 /* LOG2(NBPG) */ 99118Ssam 109118Ssam #define CLSIZE 2 119118Ssam #define CLSIZELOG2 1 129118Ssam 139118Ssam #define SSIZE 4 /* initial stack size/NBPG */ 149118Ssam #define SINCR 4 /* increment of stack/NBPG */ 159118Ssam 169118Ssam #define UPAGES 8 /* pages of u-area */ 179118Ssam 189118Ssam /* 199118Ssam * Some macros for units conversion 209118Ssam */ 219118Ssam /* Core clicks (512 bytes) to segments and vice versa */ 229118Ssam #define ctos(x) (x) 239118Ssam #define stoc(x) (x) 249118Ssam 259118Ssam /* Core clicks (512 bytes) to disk blocks */ 269118Ssam #define ctod(x) (x) 279118Ssam #define dtoc(x) (x) 289118Ssam #define dtob(x) ((x)<<9) 299118Ssam 309118Ssam /* clicks to bytes */ 319118Ssam #define ctob(x) ((x)<<9) 329118Ssam 339118Ssam /* bytes to clicks */ 349118Ssam #define btoc(x) ((((unsigned)(x)+511)>>9)) 359118Ssam 369118Ssam /* 379118Ssam * Macros to decode processor status word. 389118Ssam */ 399118Ssam #define USERMODE(ps) (((ps) & PSL_CURMOD) == PSL_CURMOD) 40*9600Ssam #define BASEPRI(ps) (((ps) & PSL_IPL) == 0) 419118Ssam 429118Ssam #define DELAY(n) { register int N = (n); while (--N > 0); } 43