direct-io.hg

view linux-2.6-xen-sparse/include/asm-i386/mach-xen/mach_traps.h @ 11509:2e6c10dc7c0b

[POWERPC][XEN] make sure put_domain() is called in case of allocate_rma() failuer

Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
author Jimi Xenidis <jimix@watson.ibm.com>
date Tue Sep 12 10:53:46 2006 -0400 (2006-09-12)
parents fd9b2c1bb577
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 */