events.h 416 B

123456789101112131415161718192021
  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. #endif /* _ASM_ARM64_XEN_EVENTS_H */