aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/xen/softirq.h
diff options
context:
space:
mode:
authorkaf24@scramble.cl.cam.ac.uk <kaf24@scramble.cl.cam.ac.uk>2004-08-03 10:55:54 +0000
committerkaf24@scramble.cl.cam.ac.uk <kaf24@scramble.cl.cam.ac.uk>2004-08-03 10:55:54 +0000
commitc897cb3bac0a262a446dd8591e6be6bb8bb33861 (patch)
tree73c3662b1668d437dfd096344a1f0e773a151c93 /xen/include/xen/softirq.h
parenta346999a2d2781246a5cf9b63847d46c874ed7e4 (diff)
downloadxen-c897cb3bac0a262a446dd8591e6be6bb8bb33861.tar.gz
xen-c897cb3bac0a262a446dd8591e6be6bb8bb33861.tar.bz2
xen-c897cb3bac0a262a446dd8591e6be6bb8bb33861.zip
bitkeeper revision 1.1108.33.42 (410f6f3aRsLN-XTc0i2kCrGt2plvhw)
More NMI-handling cleanups. Users now have an option of what to do with an error NMI by specifying 'nmi=xxx' on Xen's cmdline. 'nmi=dom0' -> Tell DOM0 about it (DOM0 currently ignores it). 'nmi=ignore' -> ignore it 'nmi=fatal' -> print a diagnostic and then hang.
Diffstat (limited to 'xen/include/xen/softirq.h')
-rw-r--r--xen/include/xen/softirq.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/xen/include/xen/softirq.h b/xen/include/xen/softirq.h
index 8e45dadf18..3cb570a247 100644
--- a/xen/include/xen/softirq.h
+++ b/xen/include/xen/softirq.h
@@ -1,23 +1,21 @@
#ifndef __XEN_SOFTIRQ_H__
#define __XEN_SOFTIRQ_H__
+#define AC_TIMER_SOFTIRQ 0
+#define NEW_TLBFLUSH_CLOCK_PERIOD_SOFTIRQ 1
+#define DEBUGGER_SOFTIRQ 2
+#define NMI_SOFTIRQ 3
+#define SCHEDULE_SOFTIRQ 4
+#define NR_SOFTIRQS 5
+
+#ifndef __ASSEMBLY__
+
#include <xen/config.h>
#include <xen/lib.h>
#include <xen/smp.h>
#include <asm/bitops.h>
#include <asm/hardirq.h>
-enum
-{
- AC_TIMER_SOFTIRQ=0,
- NEW_TLBFLUSH_CLOCK_PERIOD_SOFTIRQ,
-#ifdef XEN_DEBUGGER
- DEBUGGER_SOFTIRQ,
-#endif
- SCHEDULE_SOFTIRQ, /* NB. This must come last or do_softirq() will break! */
- NR_SOFTIRQS
-};
-
typedef void (*softirq_handler)(void);
asmlinkage void do_softirq(void);
@@ -34,4 +32,6 @@ static inline void raise_softirq(unsigned int nr)
set_bit(nr, &softirq_pending(smp_processor_id()));
}
+#endif /* __ASSEMBLY__ */
+
#endif /* __XEN_SOFTIRQ_H__ */