events.h 637 B

123456789101112131415161718192021222324252627282930
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef _ASM_ARM_XEN_EVENTS_H
  3. #define _ASM_ARM_XEN_EVENTS_H
  4. #include <asm/ptrace.h>
  5. #include <asm/atomic.h>
  6. enum ipi_vector {
  7. XEN_PLACEHOLDER_VECTOR,
  8. /* Xen IPIs go here */
  9. XEN_NR_IPIS,
  10. };
  11. static inline int xen_irqs_disabled(struct pt_regs *regs)
  12. {
  13. return raw_irqs_disabled_flags(regs->ARM_cpsr);
  14. }
  15. #define xchg_xen_ulong(ptr, val) atomic64_xchg(container_of((long long*)(ptr),\
  16. atomic64_t, \
  17. counter), (val))
  18. /* Rebind event channel is supported by default */
  19. static inline bool xen_support_evtchn_rebind(void)
  20. {
  21. return true;
  22. }
  23. #endif /* _ASM_ARM_XEN_EVENTS_H */