Module Name: src Committed By: thorpej Date: Fri Apr 5 14:12:14 UTC 2019
Modified Files: src/sys/arch/alpha/alpha: machdep.c Log Message: 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. To generate a diff of this commit: cvs rdiff -u -r1.353 -r1.354 src/sys/arch/alpha/alpha/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/alpha/alpha/machdep.c diff -u src/sys/arch/alpha/alpha/machdep.c:1.353 src/sys/arch/alpha/alpha/machdep.c:1.354 --- src/sys/arch/alpha/alpha/machdep.c:1.353 Mon Mar 25 19:24:30 2019 +++ src/sys/arch/alpha/alpha/machdep.c Fri Apr 5 14:12:14 2019 @@ -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 @@ __KERNEL_RCSID(0, "$NetBSD: machdep.c,v #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 @@ nobootinfo: #endif } +#ifdef MODULAR +/* Push any modules loaded by the boot loader */ +void +module_init_md(void) +{ + /* nada. */ +} +#endif /* MODULAR */ + void consinit(void) {