diff options
Diffstat (limited to 'arch/x86/include/asm/nmi.h')
-rw-r--r-- | arch/x86/include/asm/nmi.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/arch/x86/include/asm/nmi.h b/arch/x86/include/asm/nmi.h index 4886a68f267e..480b69b75756 100644 --- a/arch/x86/include/asm/nmi.h +++ b/arch/x86/include/asm/nmi.h | |||
@@ -42,6 +42,24 @@ void arch_trigger_all_cpu_backtrace(void); | |||
42 | #define NMI_LOCAL_NORMAL_PRIOR (NMI_LOCAL_BIT | NMI_NORMAL_PRIOR) | 42 | #define NMI_LOCAL_NORMAL_PRIOR (NMI_LOCAL_BIT | NMI_NORMAL_PRIOR) |
43 | #define NMI_LOCAL_LOW_PRIOR (NMI_LOCAL_BIT | NMI_LOW_PRIOR) | 43 | #define NMI_LOCAL_LOW_PRIOR (NMI_LOCAL_BIT | NMI_LOW_PRIOR) |
44 | 44 | ||
45 | #define NMI_FLAG_FIRST 1 | ||
46 | |||
47 | enum { | ||
48 | NMI_LOCAL=0, | ||
49 | NMI_UNKNOWN, | ||
50 | NMI_MAX | ||
51 | }; | ||
52 | |||
53 | #define NMI_DONE 0 | ||
54 | #define NMI_HANDLED 1 | ||
55 | |||
56 | typedef int (*nmi_handler_t)(unsigned int, struct pt_regs *); | ||
57 | |||
58 | int register_nmi_handler(unsigned int, nmi_handler_t, unsigned long, | ||
59 | const char *); | ||
60 | |||
61 | void unregister_nmi_handler(unsigned int, const char *); | ||
62 | |||
45 | void stop_nmi(void); | 63 | void stop_nmi(void); |
46 | void restart_nmi(void); | 64 | void restart_nmi(void); |
47 | 65 | ||