|
|
1.1 ! root 1: /* ?????????????????? */ ! 2: ! 3: ! 4: /* const.h 1.1 8/24/82 */ ! 5: ! 6: /* fundamental constants */ ! 7: ! 8: /* ! 9: * fundamental constants of the implementation-- ! 10: * cannot be changed easily. ! 11: */ ! 12: ! 13: #define NBBY 8 /* number of bits in a byte */ ! 14: #define NBPW sizeof(int) /* number of bytes in an integer */ ! 15: #define NBPG 1024 ! 16: #define PGOFSET (NBPG-1) /* byte offset into page */ ! 17: #define PGSHIFT 10 /* LOG2(NBPG) */ ! 18: ! 19: #define NULL 0 ! 20: /* ! 21: * Macros for fast min/max ! 22: */ ! 23: #define MIN(a,b) (((a)<(b))?(a):(b)) ! 24: #define MAX(a,b) (((a)>(b))?(a):(b)) ! 25: ! 26: ! 27: /* ! 28: * Machine-dependent bits and macros ! 29: */ ! 30: #define UMODE PSL_CURMOD /* usermode bits */ ! 31: #define USERMODE(ps) (((ps) & UMODE) == UMODE) ! 32: ! 33: #define BASEPRI(ps) (((ps) & PSL_IPL) != 0) ! 34: ! 35: /* ! 36: * Provide about n microseconds of delay ! 37: */ ! 38: #define DELAY(n) { register int N = (n); while (--N > 0); } ! 39: ! 40: ! 41: /* ! 42: * system constants used by initialization program ! 43: */ ! 44: ! 45: #define LSP 511 /*last system page*/ ! 46: #define MAX_MEM 32*1024*NBPG - 1 /*maximum Tahoe memory*/ ! 47: #define MEM_INC 512*NBPG /*memory increment = 1/2 megabyte*/ ! 48: ! 49: ! 50:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.