2013-06-04 18:07:03 +07:00
|
|
|
#ifndef _ASM_ARM64_XEN_EVENTS_H
|
|
|
|
#define _ASM_ARM64_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((unsigned long) regs->pstate);
|
|
|
|
}
|
|
|
|
|
|
|
|
#define xchg_xen_ulong(ptr, val) xchg((ptr), (val))
|
|
|
|
|
2015-07-28 16:10:42 +07:00
|
|
|
/* Rebind event channel is supported by default */
|
|
|
|
static inline bool xen_support_evtchn_rebind(void)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2013-06-04 18:07:03 +07:00
|
|
|
#endif /* _ASM_ARM64_XEN_EVENTS_H */
|