entry_arch.h 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /*
  2. * This file is designed to contain the BUILD_INTERRUPT specifications for
  3. * all of the extra named interrupt vectors used by the architecture.
  4. * Usually this is the Inter Process Interrupts (IPIs)
  5. */
  6. /*
  7. * The following vectors are part of the Linux architecture, there
  8. * is no hardware IRQ pin equivalent for them, they are triggered
  9. * through the ICC by us (IPIs)
  10. */
  11. #ifdef CONFIG_SMP
  12. BUILD_INTERRUPT(reschedule_interrupt,RESCHEDULE_VECTOR)
  13. BUILD_INTERRUPT(call_function_interrupt,CALL_FUNCTION_VECTOR)
  14. BUILD_INTERRUPT(call_function_single_interrupt,CALL_FUNCTION_SINGLE_VECTOR)
  15. BUILD_INTERRUPT(irq_move_cleanup_interrupt,IRQ_MOVE_CLEANUP_VECTOR)
  16. BUILD_INTERRUPT3(invalidate_interrupt0,INVALIDATE_TLB_VECTOR_START+0,
  17. smp_invalidate_interrupt)
  18. BUILD_INTERRUPT3(invalidate_interrupt1,INVALIDATE_TLB_VECTOR_START+1,
  19. smp_invalidate_interrupt)
  20. BUILD_INTERRUPT3(invalidate_interrupt2,INVALIDATE_TLB_VECTOR_START+2,
  21. smp_invalidate_interrupt)
  22. BUILD_INTERRUPT3(invalidate_interrupt3,INVALIDATE_TLB_VECTOR_START+3,
  23. smp_invalidate_interrupt)
  24. BUILD_INTERRUPT3(invalidate_interrupt4,INVALIDATE_TLB_VECTOR_START+4,
  25. smp_invalidate_interrupt)
  26. BUILD_INTERRUPT3(invalidate_interrupt5,INVALIDATE_TLB_VECTOR_START+5,
  27. smp_invalidate_interrupt)
  28. BUILD_INTERRUPT3(invalidate_interrupt6,INVALIDATE_TLB_VECTOR_START+6,
  29. smp_invalidate_interrupt)
  30. BUILD_INTERRUPT3(invalidate_interrupt7,INVALIDATE_TLB_VECTOR_START+7,
  31. smp_invalidate_interrupt)
  32. #endif
  33. BUILD_INTERRUPT(generic_interrupt, GENERIC_INTERRUPT_VECTOR)
  34. /*
  35. * every pentium local APIC has two 'local interrupts', with a
  36. * soft-definable vector attached to both interrupts, one of
  37. * which is a timer interrupt, the other one is error counter
  38. * overflow. Linux uses the local APIC timer interrupt to get
  39. * a much simpler SMP time architecture:
  40. */
  41. #ifdef CONFIG_X86_LOCAL_APIC
  42. BUILD_INTERRUPT(apic_timer_interrupt,LOCAL_TIMER_VECTOR)
  43. BUILD_INTERRUPT(error_interrupt,ERROR_APIC_VECTOR)
  44. BUILD_INTERRUPT(spurious_interrupt,SPURIOUS_APIC_VECTOR)
  45. #ifdef CONFIG_PERF_COUNTERS
  46. BUILD_INTERRUPT(perf_counter_interrupt, LOCAL_PERF_VECTOR)
  47. #endif
  48. #ifdef CONFIG_X86_MCE_P4THERMAL
  49. BUILD_INTERRUPT(thermal_interrupt,THERMAL_APIC_VECTOR)
  50. #endif
  51. #endif