Provide empty module_init_md() so that modular kernel links.

This commit is contained in:
uwe 2008-11-17 01:55:00 +00:00
parent a414fb10be
commit e1bf976dc6
2 changed files with 28 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: machdep.c,v 1.63 2008/11/12 12:36:01 ad Exp $ */ /* $NetBSD: machdep.c,v 1.64 2008/11/17 02:05:13 uwe Exp $ */
/*- /*-
* Copyright (c) 2001, 2002, 2004 The NetBSD Foundation, Inc. * Copyright (c) 2001, 2002, 2004 The NetBSD Foundation, Inc.
@ -27,7 +27,7 @@
*/ */
#include <sys/cdefs.h> #include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.63 2008/11/12 12:36:01 ad Exp $"); __KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.64 2008/11/17 02:05:13 uwe Exp $");
#include "opt_md.h" #include "opt_md.h"
#include "opt_ddb.h" #include "opt_ddb.h"
@ -57,6 +57,7 @@ __KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.63 2008/11/12 12:36:01 ad Exp $");
#include <sys/kcore.h> #include <sys/kcore.h>
#include <sys/boot_flag.h> #include <sys/boot_flag.h>
#include <sys/ksyms.h> #include <sys/ksyms.h>
#include <sys/module.h>
#include <uvm/uvm_extern.h> #include <uvm/uvm_extern.h>
@ -638,3 +639,14 @@ intc_intr(int ssr, int spc, int ssp)
__dbg_heart_beat(HEART_BEAT_BLUE); __dbg_heart_beat(HEART_BEAT_BLUE);
} }
} }
#ifdef MODULAR
/*
* Push any modules loaded by the boot loader.
*/
void
module_init_md(void)
{
}
#endif /* MODULAR */

View File

@ -1,4 +1,4 @@
/* $NetBSD: machdep.c,v 1.8 2008/11/12 12:36:02 ad Exp $ */ /* $NetBSD: machdep.c,v 1.9 2008/11/17 01:55:00 uwe Exp $ */
/*- /*-
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc. * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@ -65,7 +65,7 @@
*/ */
#include <sys/cdefs.h> #include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.8 2008/11/12 12:36:02 ad Exp $"); __KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.9 2008/11/17 01:55:00 uwe Exp $");
#include "opt_ddb.h" #include "opt_ddb.h"
#include "opt_kgdb.h" #include "opt_kgdb.h"
@ -86,6 +86,7 @@ __KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.8 2008/11/12 12:36:02 ad Exp $");
#include <sys/sysctl.h> #include <sys/sysctl.h>
#include <sys/ksyms.h> #include <sys/ksyms.h>
#include <sys/device.h> #include <sys/device.h>
#include <sys/module.h>
#include <uvm/uvm_extern.h> #include <uvm/uvm_extern.h>
#include <ufs/mfs/mfs_extern.h> /* mfs_initminiroot() */ #include <ufs/mfs/mfs_extern.h> /* mfs_initminiroot() */
@ -505,3 +506,14 @@ InitializeBsc(void)
_reg_write_2(SH4_FRQCR, FRQCR_VAL); _reg_write_2(SH4_FRQCR, FRQCR_VAL);
} }
#endif /* !DONT_INIT_BSC */ #endif /* !DONT_INIT_BSC */
#ifdef MODULAR
/*
* Push any modules loaded by the boot loader.
*/
void
module_init_md(void)
{
}
#endif /* MODULAR */