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

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

Diff for /src/sys/arch/x86/x86/intr.c between version 1.155 and 1.156

version 1.155, 2021/08/09 21:20:50 version 1.156, 2021/10/07 12:52:27
Line 458  intr_allocate_slot_cpu(struct cpu_info *
Line 458  intr_allocate_slot_cpu(struct cpu_info *
                         start = NUM_LEGACY_IRQS;                          start = NUM_LEGACY_IRQS;
                 /* don't step over Xen's slots */                  /* don't step over Xen's slots */
                 if (vm_guest == VM_GUEST_XENPVH)                  if (vm_guest == VM_GUEST_XENPVH)
                         max = SIR_XENIPL_VM;                          max = SIR_XENIPL_VM;
                 /*                  /*
                  * intr_allocate_slot has checked for an existing mapping.                   * intr_allocate_slot has checked for an existing mapping.
                  * Now look for a free slot.                   * Now look for a free slot.
Line 555  intr_allocate_slot(struct pic *pic, int 
Line 555  intr_allocate_slot(struct pic *pic, int 
 #if 0  #if 0
                         if (ci == NULL ||                          if (ci == NULL ||
                             ci->ci_nintrhand > lci->ci_nintrhand) {                              ci->ci_nintrhand > lci->ci_nintrhand) {
                                 ci = lci;                                  ci = lci;
                         }                          }
 #else  #else
                         ci = &cpu_info_primary;                          ci = &cpu_info_primary;
Line 938  intr_establish_xname(int legacy_irq, str
Line 938  intr_establish_xname(int legacy_irq, str
                     pic->pic_name, type == IST_EDGE ? "edge" : "level", pin,                      pic->pic_name, type == IST_EDGE ? "edge" : "level", pin,
                     level, device_xname(ci->ci_dev), slot, idt_vec);                      level, device_xname(ci->ci_dev), slot, idt_vec);
   
         return (ih);          return ih;
 }  }
   
 void *  void *
Line 1904  intr_set_affinity(struct intrsource *isp
Line 1904  intr_set_affinity(struct intrsource *isp
                 if (new_idtvec == 0)                  if (new_idtvec == 0)
                         return EBUSY;                          return EBUSY;
                 DPRINTF(("interrupt from cpu%d vec %d to cpu%d vec %d\n",                  DPRINTF(("interrupt from cpu%d vec %d to cpu%d vec %d\n",
                     cpu_index(oldci), old_idtvec, cpu_index(newci), new_idtvec));                      cpu_index(oldci), old_idtvec, cpu_index(newci),
                           new_idtvec));
         } else {          } else {
                 new_idtvec = isp->is_idtvec;                  new_idtvec = isp->is_idtvec;
         }          }
Line 2104  interrupt_get_assigned(const char *intri
Line 2105  interrupt_get_assigned(const char *intri
   
         mutex_enter(&cpu_lock);          mutex_enter(&cpu_lock);
         isp = intr_get_io_intrsource(intrid);          isp = intr_get_io_intrsource(intrid);
         if (isp != NULL)          if (isp != NULL)
                 isp->is_pic->pic_intr_get_assigned(intrid, cpuset);                  isp->is_pic->pic_intr_get_assigned(intrid, cpuset);
         mutex_exit(&cpu_lock);          mutex_exit(&cpu_lock);
 }  }

Legend:
Removed from v.1.155  
changed lines
  Added in v.1.156

CVSweb <webmaster@jp.NetBSD.org>