ia64/xen-unstable

view patches/linux-2.6.18/i386-mach-io-check-nmi.patch @ 14131:64d80037e524

Save elfnotes in VM sxpr under image/notes, and load them on restore.
Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
author kfraser@localhost.localdomain
date Mon Feb 26 09:59:56 2007 +0000 (2007-02-26)
parents 3adf00179a63
children
line source
1 diff -pruN ../orig-linux-2.6.18/arch/i386/kernel/traps.c ./arch/i386/kernel/traps.c
2 --- ../orig-linux-2.6.18/arch/i386/kernel/traps.c 2006-09-20 04:42:06.000000000 +0100
3 +++ ./arch/i386/kernel/traps.c 2007-01-12 16:07:49.000000000 +0000
4 @@ -642,18 +642,11 @@ static void mem_parity_error(unsigned ch
6 static void io_check_error(unsigned char reason, struct pt_regs * regs)
7 {
8 - unsigned long i;
9 -
10 printk(KERN_EMERG "NMI: IOCK error (debug interrupt?)\n");
11 show_registers(regs);
13 /* Re-enable the IOCK line, wait for a few seconds */
14 - reason = (reason & 0xf) | 8;
15 - outb(reason, 0x61);
16 - i = 2000;
17 - while (--i) udelay(1000);
18 - reason &= ~8;
19 - outb(reason, 0x61);
20 + clear_io_check_error(reason);
21 }
23 static void unknown_nmi_error(unsigned char reason, struct pt_regs * regs)
24 diff -pruN ../orig-linux-2.6.18/include/asm-i386/mach-default/mach_traps.h ./include/asm-i386/mach-default/mach_traps.h
25 --- ../orig-linux-2.6.18/include/asm-i386/mach-default/mach_traps.h 2006-09-20 04:42:06.000000000 +0100
26 +++ ./include/asm-i386/mach-default/mach_traps.h 2007-01-12 16:07:49.000000000 +0000
27 @@ -15,6 +15,18 @@ static inline void clear_mem_error(unsig
28 outb(reason, 0x61);
29 }
31 +static inline void clear_io_check_error(unsigned char reason)
32 +{
33 + unsigned long i;
34 +
35 + reason = (reason & 0xf) | 8;
36 + outb(reason, 0x61);
37 + i = 2000;
38 + while (--i) udelay(1000);
39 + reason &= ~8;
40 + outb(reason, 0x61);
41 +}
42 +
43 static inline unsigned char get_nmi_reason(void)
44 {
45 return inb(0x61);