[BACK]Return to cpu.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / arch / alpha / alpha

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

Diff for /src/sys/arch/alpha/alpha/cpu.c between version 1.17 and 1.18

version 1.17, 1996/12/08 00:22:08 version 1.18, 1997/03/12 05:50:00
Line 58  cpumatch(parent, cfdata, aux)
Line 58  cpumatch(parent, cfdata, aux)
         if (strcmp(ca->ca_name, cpu_cd.cd_name) != 0)          if (strcmp(ca->ca_name, cpu_cd.cd_name) != 0)
                 return (0);                  return (0);
   
           /* XXX CHECK SLOT? */
           /* XXX CHECK PRIMARY? */
   
         return (1);          return (1);
 }  }
   
Line 67  cpuattach(parent, dev, aux)
Line 70  cpuattach(parent, dev, aux)
         struct device *dev;          struct device *dev;
         void *aux;          void *aux;
 {  {
           struct confargs *ca = aux;
         struct pcs *p;          struct pcs *p;
         int needcomma;          int needcomma;
         u_int32_t major, minor;          u_int32_t major, minor;
   
         p = (struct pcs*)((char *)hwrpb + hwrpb->rpb_pcs_off +          p = (struct pcs *)((char *)hwrpb + hwrpb->rpb_pcs_off +
             (dev->dv_unit * hwrpb->rpb_pcs_size));              (ca->ca_slot * hwrpb->rpb_pcs_size));
         major = (p->pcs_proc_type & PCS_PROC_MAJOR) >> PCS_PROC_MAJORSHIFT;          major = (p->pcs_proc_type & PCS_PROC_MAJOR) >> PCS_PROC_MAJORSHIFT;
         minor = (p->pcs_proc_type & PCS_PROC_MINOR) >> PCS_PROC_MINORSHIFT;          minor = (p->pcs_proc_type & PCS_PROC_MINOR) >> PCS_PROC_MINORSHIFT;
   
         printf(": ");          printf(": ID %d%s, ", ca->ca_slot,
               ca->ca_slot == hwrpb->rpb_primary_cpu_id ? " (primary)" : "");
   
         switch (major) {          switch (major) {
         case PCS_PROC_EV3:          case PCS_PROC_EV3:
                 printf("EV3 (minor type 0x%x)", minor);                  printf("EV3 (minor type 0x%x)", minor);
Line 232  cpuattach(parent, dev, aux)
Line 238  cpuattach(parent, dev, aux)
         }          }
         printf("\n");          printf("\n");
   
   #ifdef DEBUG
         /* XXX SHOULD CHECK ARCHITECTURE MASK, TOO */          /* XXX SHOULD CHECK ARCHITECTURE MASK, TOO */
         if (p->pcs_proc_var != 0) {          if (p->pcs_proc_var != 0) {
                 printf("cpu%d: ", dev->dv_unit);                  printf("cpu%d: ", dev->dv_unit);
Line 254  cpuattach(parent, dev, aux)
Line 261  cpuattach(parent, dev, aux)
                             p->pcs_proc_var & PCS_VAR_RESERVED);                              p->pcs_proc_var & PCS_VAR_RESERVED);
                 printf("\n");                  printf("\n");
         }          }
   #endif
   
         /*          /*
          * Though we could (should?) attach the LCA cpus' PCI           * Though we could (should?) attach the LCA cpus' PCI

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18

CVSweb <webmaster@jp.NetBSD.org>