forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Xen: make events.c portable for ia64/xen support
Remove x86 dependency in drivers/xen/events.c for ia64/xen support introducing include/asm/xen/events.h. Introduce xen_irqs_disabled() to hide regs->flags Introduce xen_do_IRQ() to hide regs->orig_ax. make enum ipi_vector definition arch specific. ia64/xen needs four vectors. Add one rmb() because on ia64 xchg() isn't barrier. Signed-off-by: Isaku Yamahata <[email protected]> Signed-off-by: Jeremy Fitzhardinge <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]>
- Loading branch information
Isaku Yamahata
authored and
Ingo Molnar
committed
Apr 24, 2008
1 parent
e04d0d0
commit e849c3e
Showing
3 changed files
with
30 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#ifndef __XEN_EVENTS_H | ||
#define __XEN_EVENTS_H | ||
|
||
enum ipi_vector { | ||
XEN_RESCHEDULE_VECTOR, | ||
XEN_CALL_FUNCTION_VECTOR, | ||
|
||
XEN_NR_IPIS, | ||
}; | ||
|
||
static inline int xen_irqs_disabled(struct pt_regs *regs) | ||
{ | ||
return raw_irqs_disabled_flags(regs->flags); | ||
} | ||
|
||
static inline void xen_do_IRQ(int irq, struct pt_regs *regs) | ||
{ | ||
regs->orig_ax = ~irq; | ||
do_IRQ(regs); | ||
} | ||
|
||
#endif /* __XEN_EVENTS_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters