Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/alpha/alpha Prrovide a basic (i.e. empty) module_in...



details:   https://anonhg.NetBSD.org/src/rev/88c9c5efe27e
branches:  trunk
changeset: 455526:88c9c5efe27e
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Fri Apr 05 14:12:14 2019 +0000

description:
Prrovide a basic (i.e. empty) module_init_md().  MODULAR doesn't quite
work yet (missing support for a couple of relocations), but at last the
kernel links.

diffstat:

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

diffs (42 lines):

diff -r 6832c167c55c -r 88c9c5efe27e sys/arch/alpha/alpha/machdep.c
--- a/sys/arch/alpha/alpha/machdep.c    Fri Apr 05 14:00:16 2019 +0000
+++ b/sys/arch/alpha/alpha/machdep.c    Fri Apr 05 14:12:14 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.353 2019/03/25 19:24:30 maxv Exp $ */
+/* $NetBSD: machdep.c,v 1.354 2019/04/05 14:12:14 thorpej Exp $ */
 
 /*-
  * Copyright (c) 1998, 1999, 2000 The NetBSD Foundation, Inc.
@@ -67,7 +67,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.353 2019/03/25 19:24:30 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.354 2019/04/05 14:12:14 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -80,6 +80,7 @@
 #include <sys/reboot.h>
 #include <sys/device.h>
 #include <sys/malloc.h>
+#include <sys/module.h>
 #include <sys/mman.h>
 #include <sys/msgbuf.h>
 #include <sys/ioctl.h>
@@ -794,6 +795,15 @@
 #endif
 }
 
+#ifdef MODULAR
+/* Push any modules loaded by the boot loader */
+void
+module_init_md(void)
+{
+       /* nada. */
+}
+#endif /* MODULAR */
+
 void
 consinit(void)
 {



Home | Main Index | Thread Index | Old Index