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/kern_clock.c | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'sys/kern/kern_clock.c') diff --git a/sys/kern/kern_clock.c b/sys/kern/kern_clock.c index fb686b1..04af42b 100644 --- a/sys/kern/kern_clock.c +++ b/sys/kern/kern_clock.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)kern_clock.c 8.5 (Berkeley) 1/21/94 - * $Id: kern_clock.c,v 1.13 1995/05/30 08:05:20 rgrimes Exp $ + * $Id: kern_clock.c,v 1.14 1995/07/29 11:40:12 bde Exp $ */ /* Portions of this software are covered by the following: */ @@ -75,6 +75,14 @@ #include #endif +/* + * System initialization + */ + +static void initclocks __P(( caddr_t udata)); +SYSINIT(clocks, SI_SUB_CLOCKS, SI_ORDER_FIRST, initclocks, NULL) + + /* Does anybody else really care about these? */ struct callout *callfree, *callout, calltodo; @@ -383,8 +391,10 @@ hardupdate(offset) /* * Initialize clock frequencies and start both clocks running. */ -void -initclocks() +/* ARGSUSED*/ +static void +initclocks( udata) +caddr_t udata; /* not used*/ { register int i; -- cgit v1.1