Module Name: src
Committed By: pooka
Date: Wed Sep 2 08:07:05 UTC 2009
Modified Files:
src/sys/kern: init_main.c
Log Message:
Initialize devsw (lock) early so that subsystems may play with it.
To generate a diff of this commit:
cvs rdiff -u -r1.396 -r1.397 src/sys/kern/init_main.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/kern/init_main.c
diff -u src/sys/kern/init_main.c:1.396 src/sys/kern/init_main.c:1.397
--- src/sys/kern/init_main.c:1.396 Mon Jul 27 17:40:57 2009
+++ src/sys/kern/init_main.c Wed Sep 2 08:07:05 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: init_main.c,v 1.396 2009/07/27 17:40:57 mbalmer Exp $ */
+/* $NetBSD: init_main.c,v 1.397 2009/09/02 08:07:05 pooka Exp $ */
/*-
* Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
@@ -97,7 +97,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: init_main.c,v 1.396 2009/07/27 17:40:57 mbalmer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: init_main.c,v 1.397 2009/09/02 08:07:05 pooka Exp $");
#include "opt_ddb.h"
#include "opt_ipsec.h"
@@ -297,6 +297,9 @@
once_init();
mutex_init(&cpu_lock, MUTEX_DEFAULT, IPL_NONE);
+ /* Initialize the device switch tables. */
+ devsw_init();
+
uvm_init();
#if ((NKSYMS > 0) || (NDDB > 0) || (NMODULAR > 0))
@@ -450,9 +453,6 @@
inittimecounter();
ntp_init();
- /* Initialize the device switch tables. */
- devsw_init();
-
/* Initialize tty subsystem. */
tty_init();
ttyldisc_init();