[BACK]Return to kern_devconfig.c CVS log [TXT][DIR] Up to [local] / funnyos / kern

Diff for /funnyos/kern/kern_devconfig.c between version 1.8 and 1.11

version 1.8, 2007/11/02 13:17:39 version 1.11, 2007/12/16 23:16:09
Line 138 
Line 138 
                         /* allocate space for device's devdata */                          /* allocate space for device's devdata */
                         cdevp->dv_devdata = kmalloc(drp->dr_ddsize);                          cdevp->dv_devdata = kmalloc(drp->dr_ddsize);
                         if (cdevp->dv_devdata == NULL)                          if (cdevp->dv_devdata == NULL)
                                 panic("failed to allocate space for %s devdata\n");                                  panic("failed to allocate space for %s devdata\n", aip->ai_cname);
                                 /* NOTREACHED */                                  /* NOTREACHED */
   
                         /* increment number of driver's instances */                          /* increment number of driver's instances */
Line 177 
Line 177 
                         cdevp->dv_active = 1;                          cdevp->dv_active = 1;
   
                         /* if device has interrupt handler, establish it */                          /* if device has interrupt handler, establish it */
                         if (drp->dr_interrupt != NULL && aip->ai_intrno != 0) {                          if (drp->dr_interrupt != NULL && aip->ai_intrno != -1) {
                                 DPRINTF("devconfig_attach_childs: establishing interrupt %d for %s/%d\n",                                  DPRINTF("devconfig_attach_childs: establishing interrupt %d for %s/%d\n",
                                                         aip->ai_intrno, cdevp->dv_name, cdevp->dv_minor);                                                          aip->ai_intrno, cdevp->dv_name, cdevp->dv_minor);
                                 intr_establish(aip->ai_intrno, cdevp, drp->dr_interrupt);                                  intr_establish(aip->ai_intrno, cdevp, drp->dr_interrupt);

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.11

CVSweb