ia64/xen-unstable

view xen/include/asm-x86/hardirq.h @ 5374:22e42640bcff

bitkeeper revision 1.1691.1.8 (42a6fb21d3oJwpLmOxa2jKHRJ-8fJg)

First phase of removing IRQ numbers from Xen (transitioning to
IRQ addressing by 'legacy ISA IRQ', 'interrupt vector', and
'I/O APIC address + pin' as appropriate). Overall plan is to move
I/O APIC parsing and setup out of Xen (so we start DOM0 in virtual wire
mode).
Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Wed Jun 08 14:05:21 2005 +0000 (2005-06-08)
parents 0a4b76b6b5a0
children 949970efef98
line source
1 #ifndef __ASM_HARDIRQ_H
2 #define __ASM_HARDIRQ_H
4 #include <xen/config.h>
5 #include <xen/cache.h>
7 typedef struct {
8 unsigned int __softirq_pending;
9 unsigned int __local_irq_count;
10 unsigned int __nmi_count;
11 unsigned long idle_timestamp;
12 } __cacheline_aligned irq_cpustat_t;
14 #include <xen/irq_cpustat.h> /* Standard mappings for irq_cpustat_t above */
16 #define in_irq() (local_irq_count(smp_processor_id()) != 0)
18 #define irq_enter(cpu) (local_irq_count(cpu)++)
19 #define irq_exit(cpu) (local_irq_count(cpu)--)
21 #endif /* __ASM_HARDIRQ_H */