ia64/xen-unstable

view linux-2.6-xen-sparse/include/asm-i386/mach-xen/mach_traps.h @ 8706:fd9b2c1bb577

Update linux sparse tree to subarch layout.
Sparse tree is based on 2.6.12 branch of linux-2.6-xen.hg.

Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
author cl349@firebug.cl.cam.ac.uk
date Mon Jan 30 17:18:27 2006 +0000 (2006-01-30)
parents linux-2.6-xen-sparse/include/asm-xen/asm-i386/mach-xen/mach_traps.h@278e536ade72
children
line source
1 /*
2 * include/asm-xen/asm-i386/mach-xen/mach_traps.h
3 *
4 * Machine specific NMI handling for Xen
5 */
6 #ifndef _MACH_TRAPS_H
7 #define _MACH_TRAPS_H
9 #include <linux/bitops.h>
10 #include <xen/interface/nmi.h>
12 static inline void clear_mem_error(unsigned char reason) {}
13 static inline void clear_io_check_error(unsigned char reason) {}
15 static inline unsigned char get_nmi_reason(void)
16 {
17 shared_info_t *s = HYPERVISOR_shared_info;
18 unsigned char reason = 0;
20 /* construct a value which looks like it came from
21 * port 0x61.
22 */
23 if (test_bit(_XEN_NMIREASON_io_error, &s->arch.nmi_reason))
24 reason |= 0x40;
25 if (test_bit(_XEN_NMIREASON_parity_error, &s->arch.nmi_reason))
26 reason |= 0x80;
28 return reason;
29 }
31 static inline void reassert_nmi(void) {}
33 #endif /* !_MACH_TRAPS_H */