Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/arm32 Define an empty module_init_md function s...
details: https://anonhg.NetBSD.org/src/rev/fb6ffa0a0f3c
branches: trunk
changeset: 750924:fb6ffa0a0f3c
user: jmmv <jmmv%NetBSD.org@localhost>
date: Mon Jan 18 23:04:30 2010 +0000
description:
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.
diffstat:
sys/arch/arm/arm32/arm32_machdep.c | 16 ++++++++++++++--
1 files changed, 14 insertions(+), 2 deletions(-)
diffs (42 lines):
diff -r 69f90aa310a1 -r fb6ffa0a0f3c sys/arch/arm/arm32/arm32_machdep.c
--- a/sys/arch/arm/arm32/arm32_machdep.c Mon Jan 18 22:31:14 2010 +0000
+++ b/sys/arch/arm/arm32/arm32_machdep.c Mon Jan 18 23:04:30 2010 +0000
@@ -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 */
Home |
Main Index |
Thread Index |
Old Index