Module Name:    src
Committed By:   jmmv
Date:           Mon Jan 18 23:04:30 UTC 2010

Modified Files:
        src/sys/arch/arm/arm32: arm32_machdep.c

Log Message:
Define an empty module_init_md function so that kernels with 'options
MODULAR' can be built (at least in shark).  Still not working due to
some relocations resolving to too far away symbols though.


To generate a diff of this commit:
cvs rdiff -u -r1.71 -r1.72 src/sys/arch/arm/arm32/arm32_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/arm/arm32/arm32_machdep.c
diff -u src/sys/arch/arm/arm32/arm32_machdep.c:1.71 src/sys/arch/arm/arm32/arm32_machdep.c:1.72
--- src/sys/arch/arm/arm32/arm32_machdep.c:1.71	Sun Nov 29 04:15:42 2009
+++ src/sys/arch/arm/arm32/arm32_machdep.c	Mon Jan 18 23:04:30 2010
@@ -1,4 +1,4 @@
-/*	$NetBSD: arm32_machdep.c,v 1.71 2009/11/29 04:15:42 rmind Exp $	*/
+/*	$NetBSD: arm32_machdep.c,v 1.72 2010/01/18 23:04:30 jmmv Exp $	*/
 
 /*
  * Copyright (c) 1994-1998 Mark Brinicombe.
@@ -42,8 +42,9 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: arm32_machdep.c,v 1.71 2009/11/29 04:15:42 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: arm32_machdep.c,v 1.72 2010/01/18 23:04:30 jmmv Exp $");
 
+#include "opt_modular.h"
 #include "opt_md.h"
 #include "opt_pmap_debug.h"
 
@@ -60,6 +61,7 @@
 #include <uvm/uvm_extern.h>
 #include <sys/sysctl.h>
 #include <sys/cpu.h>
+#include <sys/module.h>
 
 #include <dev/cons.h>
 
@@ -478,3 +480,13 @@
 	}
 }
 #endif /* __HAVE_FAST_SOFTINTS */
+
+#ifdef MODULAR
+/*
+ * Push any modules loaded by the boot loader.
+ */
+void
+module_init_md(void)
+{
+}
+#endif /* MODULAR */

Reply via email to