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

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

Diff for /src/sys/arch/sparc/sparc/clkctrl.c between version 1.1.6.3 and 1.2

version 1.1.6.3, 2005/12/11 10:28:36 version 1.2, 2005/11/14 19:11:24
Line 72  clkctrl_attach(struct device *parent, st
Line 72  clkctrl_attach(struct device *parent, st
         struct sbus_attach_args *sa = &uoba->uoba_sbus;          struct sbus_attach_args *sa = &uoba->uoba_sbus;
         bus_space_handle_t bh;          bus_space_handle_t bh;
         struct cpu_info *cur;          struct cpu_info *cur;
   
         if (clkctrl_reg != NULL) {          if (clkctrl_reg != NULL) {
                 aprint_error("unable to attach more than once\n");                  aprint_error("unable to attach more than once\n");
                 return;                  return;
Line 87  clkctrl_attach(struct device *parent, st
Line 87  clkctrl_attach(struct device *parent, st
   
         clkctrl_reg = (volatile uint8_t *)bus_space_vaddr(sa->sa_bustag, bh);          clkctrl_reg = (volatile uint8_t *)bus_space_vaddr(sa->sa_bustag, bh);
   
 #ifdef DEBUG  #ifdef DEBUG
         printf(" reg: %x", (uint32_t)clkctrl_reg);          printf(" reg: %x", (uint32_t)clkctrl_reg);
 #endif  #endif
         cur = curcpu();          cur = curcpu();
         cur->idlespin = tadpole_cpu_sleep;          cur->idlespin = tadpole_cpu_sleep;
   
         printf("\n");          printf("\n");
 }  }
   
 /* ARGSUSED */  /* ARGSUSED */
 static void  static void
 tadpole_cpu_sleep(struct cpu_info *ci)  tadpole_cpu_sleep(struct cpu_info *ci)
 {  {
         if (clkctrl_reg == 0)          if (clkctrl_reg == 0)

Legend:
Removed from v.1.1.6.3  
changed lines
  Added in v.1.2

CVSweb <webmaster@jp.NetBSD.org>