events.h 466 B

1234567891011121314151617181920212223
  1. #ifndef _ASM_ARM_XEN_EVENTS_H
  2. #define _ASM_ARM_XEN_EVENTS_H
  3. #include <asm/ptrace.h>
  4. #include <asm/atomic.h>
  5. enum ipi_vector {
  6. XEN_PLACEHOLDER_VECTOR,
  7. /* Xen IPIs go here */
  8. XEN_NR_IPIS,
  9. };
  10. static inline int xen_irqs_disabled(struct pt_regs *regs)
  11. {
  12. return raw_irqs_disabled_flags(regs->ARM_cpsr);
  13. }
  14. #define xchg_xen_ulong(ptr, val) atomic64_xchg(container_of((ptr), \
  15. atomic64_t, \
  16. counter), (val))
  17. #endif /* _ASM_ARM_XEN_EVENTS_H */