2 * Machine specific NMI handling for generic.
3 * Split out from traps.c by Osamu Tomita <tomita@cinet.co.jp>
5 #ifndef _ASM_X86_MACH_DEFAULT_MACH_TRAPS_H
6 #define _ASM_X86_MACH_DEFAULT_MACH_TRAPS_H
8 #include <asm/mc146818rtc.h>
10 static inline unsigned char get_nmi_reason(void)
15 static inline void reassert_nmi(void)
19 if (do_i_have_lock_cmos())
20 old_reg = current_lock_cmos_reg();
22 lock_cmos(0); /* register doesn't matter here */
24 inb(0x71); /* dummy */
26 inb(0x71); /* dummy */
33 #endif /* _ASM_X86_MACH_DEFAULT_MACH_TRAPS_H */