diff options
author | kaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk> | 2005-12-06 17:48:57 +0100 |
---|---|---|
committer | kaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk> | 2005-12-06 17:48:57 +0100 |
commit | af50dd63cf8da47205045757e2357717eb4d0388 (patch) | |
tree | 445538c4ac45b37adfc68e0217bac394427224c3 /xen/include/asm-x86/nmi.h | |
parent | b978d1410ab951e54b8b12738ca917d6dd3d7507 (diff) | |
download | xen-af50dd63cf8da47205045757e2357717eb4d0388.tar.gz xen-af50dd63cf8da47205045757e2357717eb4d0388.tar.bz2 xen-af50dd63cf8da47205045757e2357717eb4d0388.zip |
Pull nmi/traps changes from Linux 2.6.14.
Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'xen/include/asm-x86/nmi.h')
-rw-r--r-- | xen/include/asm-x86/nmi.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/xen/include/asm-x86/nmi.h b/xen/include/asm-x86/nmi.h new file mode 100644 index 0000000000..1529bbb8c7 --- /dev/null +++ b/xen/include/asm-x86/nmi.h @@ -0,0 +1,24 @@ + +#ifndef ASM_NMI_H +#define ASM_NMI_H + +struct cpu_user_regs; + +typedef int (*nmi_callback_t)(struct cpu_user_regs *regs, int cpu); + +/** + * set_nmi_callback + * + * Set a handler for an NMI. Only one handler may be + * set. Return 1 if the NMI was handled. + */ +void set_nmi_callback(nmi_callback_t callback); + +/** + * unset_nmi_callback + * + * Remove the handler previously set. + */ +void unset_nmi_callback(void); + +#endif /* ASM_NMI_H */ |