ia64/xen-unstable

view linux-2.6-xen-sparse/include/asm-i386/mach-xen/mach_traps.h @ 13341:3040ba0f2d3d

When booting via xm, only run the bootloader if it's in non-interactive mode:
otherwise we lose the user's named kernel and try to bootload the temporary
file pygrub returned.

Signed-off-by: John Levon <john.levon@sun.com>
author Tim Deegan <Tim.Deegan@xensource.com>
date Tue Jan 09 13:24:45 2007 +0000 (2007-01-09)
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 */