[BACK]Return to md.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / dev

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/dev/md.c between version 1.56 and 1.56.6.1

version 1.56, 2008/06/16 10:27:47 version 1.56.6.1, 2009/05/11 20:07:08
Line 49 
Line 49 
 __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
  */   */
Line 127  mdattach(int n)
Line 130  mdattach(int n)
         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;

Legend:
Removed from v.1.56  
changed lines
  Added in v.1.56.6.1

CVSweb <webmaster@jp.NetBSD.org>