aboutsummaryrefslogtreecommitdiff
path: root/sys/i386
diff options
context:
space:
mode:
authorYoshihiro Takahashi <nyan@FreeBSD.org>2003-11-04 13:01:41 +0000
committerYoshihiro Takahashi <nyan@FreeBSD.org>2003-11-04 13:01:41 +0000
commit95755cc99b8c434aa31eaf96b61217bb8c3a7b88 (patch)
tree2e93286dd00b6d8922f94a7854084cf4cf610610 /sys/i386
parentec3f495c761be9455ca4791ebc3c6cc1700c7450 (diff)
downloadsrc-95755cc99b8c434aa31eaf96b61217bb8c3a7b88.tar.gz
src-95755cc99b8c434aa31eaf96b61217bb8c3a7b88.zip
Split pc98 support into pc98/pc98/nmi.c.
Notes
Notes: svn path=/head/; revision=122048
Diffstat (limited to 'sys/i386')
-rw-r--r--sys/i386/isa/nmi.c23
1 files changed, 1 insertions, 22 deletions
diff --git a/sys/i386/isa/nmi.c b/sys/i386/isa/nmi.c
index 527414593897..48155875f13b 100644
--- a/sys/i386/isa/nmi.c
+++ b/sys/i386/isa/nmi.c
@@ -51,16 +51,11 @@ __FBSDID("$FreeBSD$");
#include <i386/bios/mca_machdep.h>
#endif
-#ifdef PC98
-#define NMI_PARITY 0x04
-#define NMI_EPARITY 0x02
-#else
#define NMI_PARITY (1 << 7)
#define NMI_IOCHAN (1 << 6)
#define ENMI_WATCHDOG (1 << 7)
#define ENMI_BUSTIMER (1 << 6)
#define ENMI_IOSTATUS (1 << 5)
-#endif
/*
* Handle a NMI, possibly a machine check.
@@ -70,22 +65,6 @@ int
isa_nmi(int cd)
{
int retval = 0;
-#ifdef PC98
- int port = inb(0x33);
-
- log(LOG_CRIT, "NMI PC98 port = %x\n", port);
- if (epson_machine_id == 0x20)
- epson_outb(0xc16, epson_inb(0xc16) | 0x1);
- if (port & NMI_PARITY) {
- log(LOG_CRIT, "BASE RAM parity error, likely hardware failure.");
- retval = 1;
- } else if (port & NMI_EPARITY) {
- log(LOG_CRIT, "EXTENDED RAM parity error, likely hardware failure.");
- retval = 1;
- } else {
- log(LOG_CRIT, "\nNMI Resume ??\n");
- }
-#else /* IBM-PC */
int isa_port = inb(0x61);
int eisa_port = inb(0x461);
@@ -127,6 +106,6 @@ isa_nmi(int cd)
log(LOG_CRIT, "EISA I/O port status error.");
retval = 1;
}
-#endif
+
return(retval);
}