Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
424 | giacomo | 1 | /* |
2 | * include/asm-i386/mach-default/mach_traps.h |
||
3 | * |
||
4 | * Machine specific NMI handling for generic. |
||
5 | * Split out from traps.c by Osamu Tomita <tomita@cinet.co.jp> |
||
6 | */ |
||
7 | #ifndef _MACH_TRAPS_H |
||
8 | #define _MACH_TRAPS_H |
||
9 | |||
10 | static inline void clear_mem_error(unsigned char reason) |
||
11 | { |
||
12 | reason = (reason & 0xf) | 4; |
||
13 | outb(reason, 0x61); |
||
14 | } |
||
15 | |||
16 | static inline unsigned char get_nmi_reason(void) |
||
17 | { |
||
18 | return inb(0x61); |
||
19 | } |
||
20 | |||
21 | static inline void reassert_nmi(void) |
||
22 | { |
||
23 | outb(0x8f, 0x70); |
||
24 | inb(0x71); /* dummy */ |
||
25 | outb(0x0f, 0x70); |
||
26 | inb(0x71); /* dummy */ |
||
27 | } |
||
28 | |||
29 | #endif /* !_MACH_TRAPS_H */ |