Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern initialize MODULE_CLASS_DRIVER modules before the d...



details:   https://anonhg.NetBSD.org/src/rev/827a60d25ef3
branches:  trunk
changeset: 341060:827a60d25ef3
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sat Oct 17 13:52:52 2015 +0000

description:
initialize MODULE_CLASS_DRIVER modules before the drivers themselves are loaded during autoconfiguration

diffstat:

 sys/kern/init_main.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r 32889cc91803 -r 827a60d25ef3 sys/kern/init_main.c
--- a/sys/kern/init_main.c      Sat Oct 17 12:02:44 2015 +0000
+++ b/sys/kern/init_main.c      Sat Oct 17 13:52:52 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: init_main.c,v 1.470 2015/09/14 01:40:03 uebayasi Exp $ */
+/*     $NetBSD: init_main.c,v 1.471 2015/10/17 13:52:52 jmcneill 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.470 2015/09/14 01:40:03 uebayasi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: init_main.c,v 1.471 2015/10/17 13:52:52 jmcneill Exp $");
 
 #include "opt_ddb.h"
 #include "opt_ipsec.h"
@@ -739,6 +739,9 @@
        drvctl_init();
 #endif
 
+       /* Initialize driver modules */
+       module_init_class(MODULE_CLASS_DRIVER);
+
        userconf_init();
        if (boothowto & RB_USERCONF)
                userconf_prompt();



Home | Main Index | Thread Index | Old Index