H. Peter Anvin | 05e4d31 | 2008-10-23 00:01:39 -0700 | [diff] [blame] | 1 | #ifndef _ASM_X86_XEN_EVENTS_H |
| 2 | #define _ASM_X86_XEN_EVENTS_H |
Isaku Yamahata | e849c3e | 2008-04-02 10:53:56 -0700 | [diff] [blame] | 3 | |
| 4 | enum ipi_vector { |
| 5 | XEN_RESCHEDULE_VECTOR, |
| 6 | XEN_CALL_FUNCTION_VECTOR, |
Jens Axboe | 3b16cf8 | 2008-06-26 11:21:54 +0200 | [diff] [blame] | 7 | XEN_CALL_FUNCTION_SINGLE_VECTOR, |
Jeremy Fitzhardinge | 2d9e1e2 | 2008-07-07 12:07:53 -0700 | [diff] [blame] | 8 | XEN_SPIN_UNLOCK_VECTOR, |
Isaku Yamahata | e849c3e | 2008-04-02 10:53:56 -0700 | [diff] [blame] | 9 | |
| 10 | XEN_NR_IPIS, |
| 11 | }; |
| 12 | |
| 13 | static inline int xen_irqs_disabled(struct pt_regs *regs) |
| 14 | { |
| 15 | return raw_irqs_disabled_flags(regs->flags); |
| 16 | } |
| 17 | |
H. Peter Anvin | 05e4d31 | 2008-10-23 00:01:39 -0700 | [diff] [blame] | 18 | #endif /* _ASM_X86_XEN_EVENTS_H */ |