xref: /csrg-svn/sys/conf/param.c (revision 3620)
1*3620Sroot /*	param.c	4.3	81/04/28	*/
23124Swnj 
33124Swnj #include "../h/param.h"
43124Swnj #include "../h/systm.h"
53124Swnj #include "../h/dir.h"
63124Swnj #include "../h/user.h"
73124Swnj #include "../h/proc.h"
83124Swnj #include "../h/text.h"
93124Swnj #include "../h/inode.h"
103124Swnj #include "../h/file.h"
113124Swnj #include "../h/callout.h"
123124Swnj #include "../h/clist.h"
133124Swnj #include "../h/cmap.h"
14*3620Sroot #include "../h/port.h"
153124Swnj /*
163124Swnj  * System parameter formulae.
173124Swnj  *
183124Swnj  * This file is copied into each directory where we compile
193124Swnj  * the kernel; it should be modified there to suit local taste
203124Swnj  * if necessary.
213124Swnj  *
223124Swnj  * Compiled with -DHZ=xx -DTIMEZONE=x -DDST=x -DMAXUSERS=xx
233124Swnj  */
243124Swnj 
253124Swnj int	hz = HZ;
263124Swnj int	timezone = TIMEZONE;
273124Swnj int	dstflag = DST;
283124Swnj #define	NPROC (20 + 8 * MAXUSERS)
293124Swnj int	nproc = NPROC;
303124Swnj int	ntext = 24 + MAXUSERS;
313463Sroot int	ninode = (NPROC + 16 + MAXUSERS) + 32;
323124Swnj int	nfile = 8 * (NPROC + 16 + MAXUSERS) / 10;
333124Swnj int	ncallout = 16 + MAXUSERS;
343124Swnj int	nclist = 100 + 16 * MAXUSERS;
35*3620Sroot int	nport = NPROC / 2;
363124Swnj 
373124Swnj /*
383124Swnj  * These are initialized at bootstrap time
393124Swnj  * to values dependent on memory size
403124Swnj  */
413124Swnj int	nbuf, nswbuf;
423124Swnj 
433124Swnj /*
443124Swnj  * These have to be allocated somewhere; allocating
453124Swnj  * them here forces loader errors if this file is omitted.
463124Swnj  */
473124Swnj struct	proc *proc, *procNPROC;
483124Swnj struct	text *text, *textNTEXT;
493124Swnj struct	inode *inode, *inodeNINODE;
503124Swnj struct	file *file, *fileNFILE;
513124Swnj struct 	callout *callout;
523124Swnj struct	cblock *cfree;
533124Swnj 
543124Swnj struct	buf *buf, *swbuf;
553124Swnj short	*swsize;
563124Swnj int	*swpf;
573124Swnj char	*buffers;
583124Swnj struct	cmap *cmap, *ecmap;
59