summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa
diff options
context:
space:
mode:
authornyan <nyan@FreeBSD.org>2003-11-04 13:01:41 +0000
committernyan <nyan@FreeBSD.org>2003-11-04 13:01:41 +0000
commit52ef645f2cbf701ab2e6d2a204e7ad345ac8f21d (patch)
tree2e93286dd00b6d8922f94a7854084cf4cf610610 /sys/i386/isa
parentc5907a254d4484ce6f04e717e1dd66ba6d49ccc0 (diff)
downloadFreeBSD-src-52ef645f2cbf701ab2e6d2a204e7ad345ac8f21d.zip
FreeBSD-src-52ef645f2cbf701ab2e6d2a204e7ad345ac8f21d.tar.gz
Split pc98 support into pc98/pc98/nmi.c.
Diffstat (limited to 'sys/i386/isa')
-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 5274145..4815587 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);
}
OpenPOWER on IntegriCloud