summaryrefslogtreecommitdiff
path: root/sys/arch/amd64/isa/clock.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/amd64/isa/clock.c')
-rw-r--r--sys/arch/amd64/isa/clock.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/arch/amd64/isa/clock.c b/sys/arch/amd64/isa/clock.c
index 5980edd031b..5785a719a09 100644
--- a/sys/arch/amd64/isa/clock.c
+++ b/sys/arch/amd64/isa/clock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: clock.c,v 1.16 2010/08/10 02:06:43 marco Exp $ */
+/* $OpenBSD: clock.c,v 1.17 2010/08/11 21:22:44 kettenis Exp $ */
/* $NetBSD: clock.c,v 1.1 2003/04/26 18:39:50 fvdl Exp $ */
/*-
@@ -343,6 +343,12 @@ rtcstart(void)
timeout_add(&rtcdrain_timeout, 1);
}
+void
+rtcstop(void)
+{
+ mc146818_write(NULL, MC_REGB, MC_REGB_24HR);
+}
+
int
rtcget(mc_todregs *regs)
{