Subversion Repositories shark

Rev

Rev 424 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
424 giacomo 1
/*
2
 *  include/asm-i386/mach-pc9800/mach_traps.h
3
 *
4
 *  Machine specific NMI handling for PC-9800.
5
 *  Written 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
        outb(0x08, 0x37);
13
        outb(0x09, 0x37);
14
}
15
 
16
static inline unsigned char get_nmi_reason(void)
17
{
18
        return (inb(0x33) & 6) ? 0x80 : 0;
19
}
20
 
21
static inline void reassert_nmi(void)
22
{
23
        outb(0x09, 0x50);       /* disable NMI once */
24
        outb(0x09, 0x52);       /* re-enable it */
25
}
26
 
27
#endif /* !_MACH_TRAPS_H */