2012-09-14 13:37:32 +00:00
|
|
|
#ifndef _ASM_ARM_XEN_EVENTS_H
|
|
|
|
#define _ASM_ARM_XEN_EVENTS_H
|
|
|
|
|
|
|
|
#include <asm/ptrace.h>
|
2013-03-07 07:17:25 +00:00
|
|
|
#include <asm/atomic.h>
|
2012-09-14 13:37:32 +00:00
|
|
|
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
|
2013-03-07 07:17:25 +00:00
|
|
|
#define xchg_xen_ulong(ptr, val) atomic64_xchg(container_of((ptr), \
|
|
|
|
atomic64_t, \
|
|
|
|
counter), (val))
|
2013-02-20 11:48:06 +00:00
|
|
|
|
2012-09-14 13:37:32 +00:00
|
|
|
#endif /* _ASM_ARM_XEN_EVENTS_H */
|