|
|
1.1 root 1: /* param.h 6.1 83/07/29 */
2:
3: /*
4: * Machine dependent constants for TAHOE.
5: */
6: #define NBPG 1024 /* bytes/page */
7: #define PGOFSET (NBPG-1) /* byte offset into page */
8: #define PGSHIFT 10 /* LOG2(NBPG) */
9: #define MAXCKEY 255 /* Maximal allowed code key */
10: #define MAXDKEY 255 /* Maximal allowed data key */
11: #define NOFCKEY (MAXCKEY+1) /* Includes 0 which is reserved */
12: #define NOFDKEY (MAXDKEY+1)
13:
14: #define CLSIZE 1
15: #define CLSIZELOG2 0
16:
17: #define SSIZE 2 /* initial stack size/NBPG */
18: #define SINCR 2 /* increment of stack/NBPG */
19:
20: #define UPAGES 6 /* pages of u-area
21: =sizeof struct user + page of red zone and 2 pages of kernel stack */
22:
23: #define IOBASE 0xfff00000 /* Last megabyte of 4 giga */
24: /* corresponds to Versabus addresses */
25:
26: /*
1.1.1.2 ! root 27: * Some defines for generalized swap configuration.
! 28: *
! 29: * NOTE!!!!!!! If NSWAPDRIVES changes, remake config.
! 30: */
! 31: #define NSWAPDRIVES 32 /* A maximum of 32 swap partitions */
! 32: #define NSWAPSZ 406656 /* Size of largest partition */
! 33:
! 34: /*
1.1 root 35: * Some macros for units conversion
36: */
37: /* Core clicks (1024 bytes) to segments and vice versa */
38: #define ctos(x) (x)
39: #define stoc(x) (x)
40:
41: /* Core clicks (1024 bytes) to disk blocks */
42: #define ctod(x) (x)
43: #define dtoc(x) (x)
44: #define dtob(x) ((x)<<PGSHIFT)
45:
46: /* clicks to bytes */
47: #define ctob(x) ((x)<<PGSHIFT)
48:
49: /* bytes to clicks */
50: #define btoc(x) ((((unsigned)(x)+NBPG-1) >> PGSHIFT))
51:
52: /*
53: * Macros to decode processor status word.
54: */
55: #define USERMODE(ps) (((ps) & PSL_CURMOD) == PSL_CURMOD)
56: #define BASEPRI(ps) (((ps) & PSL_IPL) == 0)
57:
58: #define DELAY(n) { register int N = 3*(n); while (--N > 0); }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.