Commit | Line | Data |
---|---|---|
4cc46db6 | 1 | /* param.c 4.8 81/11/07 */ |
ec6f91b0 BJ |
2 | |
3 | #include "../h/param.h" | |
4 | #include "../h/systm.h" | |
fc814008 | 5 | #ifdef BBNNET |
751b301e BJ |
6 | #include "../inet/inet.h" |
7 | #include "../inet/inet_systm.h" | |
8 | #include "../inet/imp.h" | |
9 | #include "../h/socket.h" | |
fc814008 | 10 | #endif BBNNET |
ec6f91b0 BJ |
11 | #include "../h/dir.h" |
12 | #include "../h/user.h" | |
13 | #include "../h/proc.h" | |
14 | #include "../h/text.h" | |
15 | #include "../h/inode.h" | |
16 | #include "../h/file.h" | |
17 | #include "../h/callout.h" | |
18 | #include "../h/clist.h" | |
19 | #include "../h/cmap.h" | |
ef49a333 | 20 | #include "../h/port.h" |
ec6f91b0 BJ |
21 | /* |
22 | * System parameter formulae. | |
23 | * | |
24 | * This file is copied into each directory where we compile | |
25 | * the kernel; it should be modified there to suit local taste | |
26 | * if necessary. | |
27 | * | |
28 | * Compiled with -DHZ=xx -DTIMEZONE=x -DDST=x -DMAXUSERS=xx | |
29 | */ | |
30 | ||
31 | int hz = HZ; | |
32 | int timezone = TIMEZONE; | |
33 | int dstflag = DST; | |
34 | #define NPROC (20 + 8 * MAXUSERS) | |
35 | int nproc = NPROC; | |
36 | int ntext = 24 + MAXUSERS; | |
4aef8eda | 37 | int ninode = (NPROC + 16 + MAXUSERS) + 32; |
f1da6c81 | 38 | int nfile = 8 * (NPROC + 16 + MAXUSERS) / 10 + 32; |
ec6f91b0 BJ |
39 | int ncallout = 16 + MAXUSERS; |
40 | int nclist = 100 + 16 * MAXUSERS; | |
ef49a333 | 41 | int nport = NPROC / 2; |
fc814008 BJ |
42 | #ifdef BBNNET |
43 | int nnetpages = NNETPAGES; | |
fc814008 BJ |
44 | int nnetcon = NCON; |
45 | int nhost = NHOST; | |
46 | #endif BBNNET | |
ec6f91b0 BJ |
47 | |
48 | /* | |
49 | * These are initialized at bootstrap time | |
50 | * to values dependent on memory size | |
51 | */ | |
52 | int nbuf, nswbuf; | |
53 | ||
54 | /* | |
55 | * These have to be allocated somewhere; allocating | |
56 | * them here forces loader errors if this file is omitted. | |
57 | */ | |
58 | struct proc *proc, *procNPROC; | |
59 | struct text *text, *textNTEXT; | |
60 | struct inode *inode, *inodeNINODE; | |
61 | struct file *file, *fileNFILE; | |
62 | struct callout *callout; | |
63 | struct cblock *cfree; | |
ec6f91b0 BJ |
64 | struct buf *buf, *swbuf; |
65 | short *swsize; | |
66 | int *swpf; | |
67 | char *buffers; | |
68 | struct cmap *cmap, *ecmap; | |
fc814008 | 69 | #ifdef BBNNET |
fc814008 BJ |
70 | struct ucb *contab, *conNCON; |
71 | struct host *host, *hostNHOST; | |
fc814008 BJ |
72 | struct net_stat netstat; |
73 | struct impstat imp_stat; | |
74 | #endif BBNNET |