| 1 | /* param.c 4.12 82/04/03 */ |
| 2 | |
| 3 | #include "../h/param.h" |
| 4 | #include "../h/systm.h" |
| 5 | #include "../h/socket.h" |
| 6 | #include "../h/dir.h" |
| 7 | #include "../h/user.h" |
| 8 | #include "../h/proc.h" |
| 9 | #include "../h/text.h" |
| 10 | #include "../h/inode.h" |
| 11 | #include "../h/file.h" |
| 12 | #include "../h/callout.h" |
| 13 | #include "../h/clist.h" |
| 14 | #include "../h/cmap.h" |
| 15 | #include "../h/mbuf.h" |
| 16 | /* |
| 17 | * System parameter formulae. |
| 18 | * |
| 19 | * This file is copied into each directory where we compile |
| 20 | * the kernel; it should be modified there to suit local taste |
| 21 | * if necessary. |
| 22 | * |
| 23 | * Compiled with -DHZ=xx -DTIMEZONE=x -DDST=x -DMAXUSERS=xx |
| 24 | */ |
| 25 | |
| 26 | int hz = HZ; |
| 27 | int timezone = TIMEZONE; |
| 28 | int dstflag = DST; |
| 29 | #define NPROC (20 + 8 * MAXUSERS) |
| 30 | int nproc = NPROC; |
| 31 | int ntext = 24 + MAXUSERS; |
| 32 | int ninode = (NPROC + 16 + MAXUSERS) + 32; |
| 33 | int nfile = 16 * (NPROC + 16 + MAXUSERS) / 10 + 32; |
| 34 | int ncallout = 16 + MAXUSERS; |
| 35 | int nclist = 100 + 16 * MAXUSERS; |
| 36 | int nport = NPROC / 2; |
| 37 | int nmbclusters = NMBCLUSTERS; |
| 38 | |
| 39 | /* |
| 40 | * These are initialized at bootstrap time |
| 41 | * to values dependent on memory size |
| 42 | */ |
| 43 | int nbuf, nswbuf; |
| 44 | |
| 45 | /* |
| 46 | * These have to be allocated somewhere; allocating |
| 47 | * them here forces loader errors if this file is omitted. |
| 48 | */ |
| 49 | struct proc *proc, *procNPROC; |
| 50 | struct text *text, *textNTEXT; |
| 51 | struct inode *inode, *inodeNINODE; |
| 52 | struct file *file, *fileNFILE; |
| 53 | struct callout *callout; |
| 54 | struct cblock *cfree; |
| 55 | struct buf *buf, *swbuf; |
| 56 | short *swsize; |
| 57 | int *swpf; |
| 58 | char *buffers; |
| 59 | struct cmap *cmap, *ecmap; |