blob: 1df35417c412d2fb7dde775b7cc54dde7468dfa4 [file] [log] [blame]
H. Peter Anvin05e4d312008-10-23 00:01:39 -07001#ifndef _ASM_X86_XEN_EVENTS_H
2#define _ASM_X86_XEN_EVENTS_H
Isaku Yamahatae849c3e2008-04-02 10:53:56 -07003
4enum ipi_vector {
5 XEN_RESCHEDULE_VECTOR,
6 XEN_CALL_FUNCTION_VECTOR,
Jens Axboe3b16cf82008-06-26 11:21:54 +02007 XEN_CALL_FUNCTION_SINGLE_VECTOR,
Jeremy Fitzhardinge2d9e1e22008-07-07 12:07:53 -07008 XEN_SPIN_UNLOCK_VECTOR,
Isaku Yamahatae849c3e2008-04-02 10:53:56 -07009
10 XEN_NR_IPIS,
11};
12
13static inline int xen_irqs_disabled(struct pt_regs *regs)
14{
15 return raw_irqs_disabled_flags(regs->flags);
16}
17
H. Peter Anvin05e4d312008-10-23 00:01:39 -070018#endif /* _ASM_X86_XEN_EVENTS_H */