Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Initialize devsw (lock) early so that subsystems ma...
details: https://anonhg.NetBSD.org/src/rev/69d0dec242b3
branches: trunk
changeset: 747094:69d0dec242b3
user: pooka <pooka%NetBSD.org@localhost>
date: Wed Sep 02 08:07:05 2009 +0000
description:
Initialize devsw (lock) early so that subsystems may play with it.
diffstat:
sys/kern/init_main.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (38 lines):
diff -r f5b18e91a12b -r 69d0dec242b3 sys/kern/init_main.c
--- a/sys/kern/init_main.c Wed Sep 02 07:48:50 2009 +0000
+++ b/sys/kern/init_main.c Wed Sep 02 08:07:05 2009 +0000
@@ -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();
Home |
Main Index |
Thread Index |
Old Index