events.h 501 B

1234567891011121314151617181920212223
  1. #ifndef _ASM_X86_XEN_EVENTS_H
  2. #define _ASM_X86_XEN_EVENTS_H
  3. enum ipi_vector {
  4. XEN_RESCHEDULE_VECTOR,
  5. XEN_CALL_FUNCTION_VECTOR,
  6. XEN_CALL_FUNCTION_SINGLE_VECTOR,
  7. XEN_SPIN_UNLOCK_VECTOR,
  8. XEN_IRQ_WORK_VECTOR,
  9. XEN_NMI_VECTOR,
  10. XEN_NR_IPIS,
  11. };
  12. static inline int xen_irqs_disabled(struct pt_regs *regs)
  13. {
  14. return raw_irqs_disabled_flags(regs->flags);
  15. }
  16. /* No need for a barrier -- XCHG is a barrier on x86. */
  17. #define xchg_xen_ulong(ptr, val) xchg((ptr), (val))
  18. #endif /* _ASM_X86_XEN_EVENTS_H */