events.h 537 B

123456789101112131415161718192021222324252627
  1. #ifndef _ASM_ARM64_XEN_EVENTS_H
  2. #define _ASM_ARM64_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((unsigned long) regs->pstate);
  13. }
  14. #define xchg_xen_ulong(ptr, val) xchg((ptr), (val))
  15. /* Rebind event channel is supported by default */
  16. static inline bool xen_support_evtchn_rebind(void)
  17. {
  18. return true;
  19. }
  20. #endif /* _ASM_ARM64_XEN_EVENTS_H */