summaryrefslogtreecommitdiffstats
path: root/kernel/arch/arm/include/asm/xen/events.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/arch/arm/include/asm/xen/events.h')
-rw-r--r--kernel/arch/arm/include/asm/xen/events.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/kernel/arch/arm/include/asm/xen/events.h b/kernel/arch/arm/include/asm/xen/events.h
new file mode 100644
index 000000000..8b1f37bfe
--- /dev/null
+++ b/kernel/arch/arm/include/asm/xen/events.h
@@ -0,0 +1,23 @@
+#ifndef _ASM_ARM_XEN_EVENTS_H
+#define _ASM_ARM_XEN_EVENTS_H
+
+#include <asm/ptrace.h>
+#include <asm/atomic.h>
+
+enum ipi_vector {
+ XEN_PLACEHOLDER_VECTOR,
+
+ /* Xen IPIs go here */
+ XEN_NR_IPIS,
+};
+
+static inline int xen_irqs_disabled(struct pt_regs *regs)
+{
+ return raw_irqs_disabled_flags(regs->ARM_cpsr);
+}
+
+#define xchg_xen_ulong(ptr, val) atomic64_xchg(container_of((ptr), \
+ atomic64_t, \
+ counter), (val))
+
+#endif /* _ASM_ARM_XEN_EVENTS_H */