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, |
Lin Ming | 1ff2b0c | 2012-04-21 00:11:05 +0800 | [diff] [blame] | 9 | XEN_IRQ_WORK_VECTOR, |
Konrad Rzeszutek Wilk | 6efa20e | 2013-07-19 11:51:31 -0400 | [diff] [blame] | 10 | XEN_NMI_VECTOR, |
Isaku Yamahata | e849c3e | 2008-04-02 10:53:56 -0700 | [diff] [blame] | 11 | |
| 12 | XEN_NR_IPIS, |
| 13 | }; |
| 14 | |
| 15 | static inline int xen_irqs_disabled(struct pt_regs *regs) |
| 16 | { |
| 17 | return raw_irqs_disabled_flags(regs->flags); |
| 18 | } |
| 19 | |
Ian Campbell | c81611c | 2013-02-20 11:48:06 +0000 | [diff] [blame] | 20 | /* No need for a barrier -- XCHG is a barrier on x86. */ |
| 21 | #define xchg_xen_ulong(ptr, val) xchg((ptr), (val)) |
| 22 | |
H. Peter Anvin | 05e4d31 | 2008-10-23 00:01:39 -0700 | [diff] [blame] | 23 | #endif /* _ASM_X86_XEN_EVENTS_H */ |