events.h 598 B

123456789101112131415161718192021222324252627282930
  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((long long*)(ptr),\
  15. atomic64_t, \
  16. counter), (val))
  17. /* Rebind event channel is supported by default */
  18. static inline bool xen_support_evtchn_rebind(void)
  19. {
  20. return true;
  21. }
  22. #endif /* _ASM_ARM_XEN_EVENTS_H */