Re: [PATCH 07/12] Xen: Make events.c portable for ia64/xen support.

From: Jeremy Fitzhardinge
Date: Fri Mar 28 2008 - 16:28:36 EST


Isaku Yamahata wrote:
+/* macro to avoid header inclusion dependncy hell */
+#define xen_irqs_disabled(regs) (!((regs)->flags & X86_EFLAGS_IF))

This seems pretty generic. Is there no suitable existing function? Could irqs_disabled_flags() be pressed into service? I guess it depends on how ia64 (and other architectures) can get the saved flags state from the interrupt context.

+
+/* macro to avoid header inclusion dependncy hell */
+#define xen_do_IRQ(irq, regs) \
+ do { \
+ (regs)->orig_ax = ~(irq); \
+ do_IRQ(regs); \
+ } while (0)

It's not possible to put this somewhere it could be an inline function? It might be better to make it an out of line function then.

J
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/