Module Name:    src
Committed By:   tsutsui
Date:           Wed Oct 13 14:13:33 UTC 2010

Modified Files:
        src/sys/arch/dreamcast/dreamcast: machdep.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.40 -r1.41 src/sys/arch/dreamcast/dreamcast/machdep.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/arch/dreamcast/dreamcast/machdep.c
diff -u src/sys/arch/dreamcast/dreamcast/machdep.c:1.40 src/sys/arch/dreamcast/dreamcast/machdep.c:1.41
--- src/sys/arch/dreamcast/dreamcast/machdep.c:1.40	Fri Nov 27 03:23:06 2009
+++ src/sys/arch/dreamcast/dreamcast/machdep.c	Wed Oct 13 14:13:32 2010
@@ -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

Reply via email to