diff options
author | julian <julian@FreeBSD.org> | 1997-11-25 07:07:48 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 1997-11-25 07:07:48 +0000 |
commit | cf4eb29e4783f9f144996339a3e84512d0877644 (patch) | |
tree | b5d30b291faa07bee731328b2792a221b8ed4728 /sys/kern/kern_shutdown.c | |
parent | 2d792e656e2819795c575a1abeb8dc54e2357484 (diff) | |
download | FreeBSD-src-cf4eb29e4783f9f144996339a3e84512d0877644.zip FreeBSD-src-cf4eb29e4783f9f144996339a3e84512d0877644.tar.gz |
Shift a few SYSINT() calls around.
this results in a few functions becoming static, and
the SYSINITs being close to the code they are related to.
setting up the dump device is with dumpsys() and
kicking off the scheduler is with the scheduler.
Mounting root is with the code that does it.
Reviewed by: phk
Diffstat (limited to 'sys/kern/kern_shutdown.c')
-rw-r--r-- | sys/kern/kern_shutdown.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/sys/kern/kern_shutdown.c b/sys/kern/kern_shutdown.c index 0e66cac..07bd5bc 100644 --- a/sys/kern/kern_shutdown.c +++ b/sys/kern/kern_shutdown.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)kern_shutdown.c 8.3 (Berkeley) 1/21/94 - * $Id: kern_shutdown.c,v 1.25 1997/11/06 19:29:13 phk Exp $ + * $Id: kern_shutdown.c,v 1.26 1997/11/18 15:16:43 bde Exp $ */ #include "opt_ddb.h" @@ -329,6 +329,16 @@ static int dumpsize = 0; /* also for savecore */ static int dodump = 1; SYSCTL_INT(_machdep, OID_AUTO, do_dump, CTLFLAG_RW, &dodump, 0, ""); +/* ARGSUSED */ +static void dump_conf __P((void *dummy)); +static void +dump_conf(dummy) + void *dummy; +{ + cpu_dumpconf(); +} +SYSINIT(dump_conf, SI_SUB_DUMP_CONF, SI_ORDER_FIRST, dump_conf, NULL) + /* * Doadump comes here after turning off memory management and * getting on the dump stack, either when called above, or by |