version 1.56, 2008/06/16 10:27:47 |
version 1.56.6.1, 2009/05/11 20:07:08 |
|
|
__KERNEL_RCSID(0, "$NetBSD$"); |
__KERNEL_RCSID(0, "$NetBSD$"); |
|
|
#include "opt_md.h" |
#include "opt_md.h" |
|
#include "opt_tftproot.h" |
|
|
#include <sys/param.h> |
#include <sys/param.h> |
#include <sys/kernel.h> |
#include <sys/kernel.h> |
Line 118 extern struct cfdriver md_cd; |
|
Line 119 extern struct cfdriver md_cd; |
|
CFATTACH_DECL_NEW(md, sizeof(struct md_softc), |
CFATTACH_DECL_NEW(md, sizeof(struct md_softc), |
0, md_attach, 0, NULL); |
0, md_attach, 0, NULL); |
|
|
|
extern size_t md_root_size; |
|
|
/* |
/* |
* This is called if we are configured as a pseudo-device |
* This is called if we are configured as a pseudo-device |
*/ |
*/ |
|
|
int i; |
int i; |
cfdata_t cf; |
cfdata_t cf; |
|
|
|
#ifdef TFTPROOT |
|
/* |
|
* Attachement of md0 must be done after md_root_setconf(), |
|
* because the RAMdisk is not loaded yet. |
|
*/ |
|
if (md_root_size == 0) |
|
return; |
|
#endif |
if (config_cfattach_attach("md", &md_ca)) { |
if (config_cfattach_attach("md", &md_ca)) { |
printf("md: cfattach_attach failed\n"); |
printf("md: cfattach_attach failed\n"); |
return; |
return; |