|
|
Power 6/32 Unix version 1.21
/* param.h 6.1 83/07/29 */
/*
* Machine dependent constants for TAHOE.
*/
#define NBPG 1024 /* bytes/page */
#define PGOFSET (NBPG-1) /* byte offset into page */
#define PGSHIFT 10 /* LOG2(NBPG) */
#define MAXCKEY 255 /* Maximal allowed code key */
#define MAXDKEY 255 /* Maximal allowed data key */
#define NOFCKEY (MAXCKEY+1) /* Includes 0 which is reserved */
#define NOFDKEY (MAXDKEY+1)
#define CLSIZE 1
#define CLSIZELOG2 0
#define SSIZE 2 /* initial stack size/NBPG */
#define SINCR 2 /* increment of stack/NBPG */
#define UPAGES 6 /* pages of u-area
=sizeof struct user + page of red zone and 2 pages of kernel stack */
#define IOBASE 0xfff00000 /* Last megabyte of 4 giga */
/* corresponds to Versabus addresses */
/*
* Some defines for generalized swap configuration.
*
* NOTE!!!!!!! If NSWAPDRIVES changes, remake config.
*/
#define NSWAPDRIVES 32 /* A maximum of 32 swap partitions */
#define NSWAPSZ 406656 /* Size of largest partition */
/*
* Some macros for units conversion
*/
/* Core clicks (1024 bytes) to segments and vice versa */
#define ctos(x) (x)
#define stoc(x) (x)
/* Core clicks (1024 bytes) to disk blocks */
#define ctod(x) (x)
#define dtoc(x) (x)
#define dtob(x) ((x)<<PGSHIFT)
/* clicks to bytes */
#define ctob(x) ((x)<<PGSHIFT)
/* bytes to clicks */
#define btoc(x) ((((unsigned)(x)+NBPG-1) >> PGSHIFT))
/*
* Macros to decode processor status word.
*/
#define USERMODE(ps) (((ps) & PSL_CURMOD) == PSL_CURMOD)
#define BASEPRI(ps) (((ps) & PSL_IPL) == 0)
#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.