summaryrefslogtreecommitdiffstats
path: root/sys/isa/atrtc.c
diff options
context:
space:
mode:
authormdodd <mdodd@FreeBSD.org>1999-09-03 02:04:28 +0000
committermdodd <mdodd@FreeBSD.org>1999-09-03 02:04:28 +0000
commit787d2575bc4a4fa6e8289b60ee2405e15fb0158b (patch)
treef8d141221ef5dd681a29d52481f755622bd37c72 /sys/isa/atrtc.c
parent974aea3e4ce095b6052dd022878c5e475ec147b7 (diff)
downloadFreeBSD-src-787d2575bc4a4fa6e8289b60ee2405e15fb0158b.zip
FreeBSD-src-787d2575bc4a4fa6e8289b60ee2405e15fb0158b.tar.gz
This adds the i386 specific support for systems with a MicroChannel
Architecture bus. Reviewed by: msmith
Diffstat (limited to 'sys/isa/atrtc.c')
-rw-r--r--sys/isa/atrtc.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/sys/isa/atrtc.c b/sys/isa/atrtc.c
index 8a3e1c9..c659741 100644
--- a/sys/isa/atrtc.c
+++ b/sys/isa/atrtc.c
@@ -85,6 +85,11 @@
#include <i386/isa/intr_machdep.h>
+#include "mca.h"
+#if NMCA > 0
+#include <i386/isa/mca_machdep.h>
+#endif
+
#ifdef SMP
#define disable_intr() CLOCK_DISABLE_INTR()
#define enable_intr() CLOCK_ENABLE_INTR()
@@ -258,6 +263,11 @@ clkintr(struct clockframe frame)
}
break;
}
+#if NMCA > 0
+ /* Reset clock interrupt by asserting bit 7 of port 0x61 */
+ if (MCA_system)
+ outb(0x61, inb(0x61) | 0x80);
+#endif
}
/*
OpenPOWER on IntegriCloud