source:
trunk/packages/xen-3.1/xen-3.1/patches/linux-2.6.18/i386-mach-io-check-nmi.patch
@
34
Last change on this file since 34 was 34, checked in by hartmans, 18 years ago | |
---|---|
|
|
File size: 1.4 KB |
-
arch/i386/kernel/traps.c
diff -pruN ../orig-linux-2.6.18/arch/i386/kernel/traps.c ./arch/i386/kernel/traps.c
old new static void mem_parity_error(unsigned ch 642 642 643 643 static void io_check_error(unsigned char reason, struct pt_regs * regs) 644 644 { 645 unsigned long i;646 647 645 printk(KERN_EMERG "NMI: IOCK error (debug interrupt?)\n"); 648 646 show_registers(regs); 649 647 650 648 /* Re-enable the IOCK line, wait for a few seconds */ 651 reason = (reason & 0xf) | 8; 652 outb(reason, 0x61); 653 i = 2000; 654 while (--i) udelay(1000); 655 reason &= ~8; 656 outb(reason, 0x61); 649 clear_io_check_error(reason); 657 650 } 658 651 659 652 static void unknown_nmi_error(unsigned char reason, struct pt_regs * regs) -
include/asm-i386/mach-default/mach_traps.h
diff -pruN ../orig-linux-2.6.18/include/asm-i386/mach-default/mach_traps.h ./include/asm-i386/mach-default/mach_traps.h
old new static inline void clear_mem_error(unsig 15 15 outb(reason, 0x61); 16 16 } 17 17 18 static inline void clear_io_check_error(unsigned char reason) 19 { 20 unsigned long i; 21 22 reason = (reason & 0xf) | 8; 23 outb(reason, 0x61); 24 i = 2000; 25 while (--i) udelay(1000); 26 reason &= ~8; 27 outb(reason, 0x61); 28 } 29 18 30 static inline unsigned char get_nmi_reason(void) 19 31 { 20 32 return inb(0x61);
Note: See TracBrowser
for help on using the repository browser.