Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/dreamcast/dreamcast Prepare empty module_init_md() ...



details:   https://anonhg.NetBSD.org/src/rev/dc4b8c802b84
branches:  trunk
changeset: 758011:dc4b8c802b84
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Wed Oct 13 14:13:32 2010 +0000

description:
Prepare empty module_init_md() for options MODULAR.
It just works on dreamcast even with root on gdrom environment.

diffstat:

 sys/arch/dreamcast/dreamcast/machdep.c |  16 ++++++++++++++--
 1 files changed, 14 insertions(+), 2 deletions(-)

diffs (47 lines):

diff -r 57c03ef4cd3a -r dc4b8c802b84 sys/arch/dreamcast/dreamcast/machdep.c
--- a/sys/arch/dreamcast/dreamcast/machdep.c    Wed Oct 13 11:19:28 2010 +0000
+++ b/sys/arch/dreamcast/dreamcast/machdep.c    Wed Oct 13 14:13:32 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.40 2009/11/27 03:23:06 rmind Exp $       */
+/*     $NetBSD: machdep.c,v 1.41 2010/10/13 14:13:32 tsutsui Exp $     */
 
 /*-
  * Copyright (c) 1996, 1997, 1998, 2002 The NetBSD Foundation, Inc.
@@ -65,13 +65,14 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.40 2009/11/27 03:23:06 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.41 2010/10/13 14:13:32 tsutsui Exp $");
 
 #include "opt_ddb.h"
 #include "opt_kgdb.h"
 #include "opt_memsize.h"
 #include "scif.h"
 #include "opt_kloader.h"
+#include "opt_modular.h"
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -81,6 +82,7 @@
 #include <sys/sysctl.h>
 #include <sys/ksyms.h>
 #include <sys/device.h>
+#include <sys/module.h>
 
 #ifdef KGDB
 #include <sys/kgdb.h>
@@ -289,3 +291,13 @@
                (*ih->ih_func)(ih->ih_arg);
        }
 }
+
+#ifdef MODULAR
+/*
+ * Push any modules loaded by the bootloader etc.
+ */
+void
+module_init_md(void)
+{
+}
+#endif



Home | Main Index | Thread Index | Old Index