From ebb726ec45c12268b6b931aa636809cc9cb99a90 Mon Sep 17 00:00:00 2001 From: julian Date: Mon, 28 Aug 1995 09:19:25 +0000 Subject: Reviewed by: julian with quick glances by bruce and others Submitted by: terry (terry lambert) This is a composite of 3 patch sets submitted by terry. they are: New low-level init code that supports loadbal modules better some cleanups in the namei code to help terry in 16-bit character support some changes to the mount-root code to make it a little more modular.. NOTE: mounting root off cdrom or NFS MIGHT be broken as I haven't been able to test those cases.. certainly mounting root of disk still works just fine.. mfs should work but is untested. (tomorrows task) The low level init stuff includes a total rewrite of init_main.c to make it possible for new modules to have an init phase by simply adding an entry to a TEXT_SET (or is it DATA_SET) list. thus a new module can be added to the kernel without editing any other files other than the 'files' file. --- sys/kern/subr_clist.c | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'sys/kern/subr_clist.c') diff --git a/sys/kern/subr_clist.c b/sys/kern/subr_clist.c index d80d127..9694bcb 100644 --- a/sys/kern/subr_clist.c +++ b/sys/kern/subr_clist.c @@ -6,7 +6,7 @@ * of this software, nor does the author assume any responsibility * for damages incurred with its use. * - * $Id: tty_subr.c,v 1.10 1995/05/30 08:06:18 rgrimes Exp $ + * $Id: tty_subr.c,v 1.11 1995/07/11 19:39:54 bde Exp $ */ /* @@ -14,12 +14,20 @@ */ #include +#include #include #include #include #include #include +/* + * System initialization + */ + +static void clist_init __P((caddr_t)); +SYSINIT(clist, SI_SUB_CLIST, SI_ORDER_FIRST, clist_init, NULL) + struct cblock *cfreelist = 0; int cfreecount = 0; static int cslushcount; @@ -47,8 +55,10 @@ cbstat() /* * Called from init_main.c */ -void -clist_init() +/* ARGSUSED*/ +static void +clist_init( udata) +caddr_t udata; /* not used*/ { /* * Allocate an initial base set of cblocks as a 'slush'. -- cgit v1.1