Linux 3.11-rc3
[cris-mirror.git] / arch / arm / include / asm / xen / events.h
blob8b1f37bfeeecf3c2d8af09ed15bcbc4cc8fa991f
1 #ifndef _ASM_ARM_XEN_EVENTS_H
2 #define _ASM_ARM_XEN_EVENTS_H
4 #include <asm/ptrace.h>
5 #include <asm/atomic.h>
7 enum ipi_vector {
8 XEN_PLACEHOLDER_VECTOR,
10 /* Xen IPIs go here */
11 XEN_NR_IPIS,
14 static inline int xen_irqs_disabled(struct pt_regs *regs)
16 return raw_irqs_disabled_flags(regs->ARM_cpsr);
19 #define xchg_xen_ulong(ptr, val) atomic64_xchg(container_of((ptr), \
20 atomic64_t, \
21 counter), (val))
23 #endif /* _ASM_ARM_XEN_EVENTS_H */