From 7fecb8e8450d1ccfdaab6c647027bd9c3dae8357 Mon Sep 17 00:00:00 2001 From: Bruce Evans Date: Tue, 20 Sep 1994 21:20:46 +0000 Subject: [PATCH] Don't lose the RTC interrupt in resettodr(). --- sys/amd64/amd64/tsc.c | 4 ++-- sys/amd64/isa/clock.c | 4 ++-- sys/i386/i386/tsc.c | 4 ++-- sys/i386/isa/clock.c | 4 ++-- sys/isa/atrtc.c | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/sys/amd64/amd64/tsc.c b/sys/amd64/amd64/tsc.c index 1835e22700e9..39dc767f6925 100644 --- a/sys/amd64/amd64/tsc.c +++ b/sys/amd64/amd64/tsc.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * from: @(#)clock.c 7.2 (Berkeley) 5/12/91 - * $Id: clock.c,v 1.19 1994/09/18 23:08:55 bde Exp $ + * $Id: clock.c,v 1.20 1994/09/20 00:31:05 ache Exp $ */ /* @@ -514,7 +514,7 @@ void resettodr() writertc(RTC_DAY, int2bcd(tm+1)); /* Write back Day */ /* enable time updates */ - writertc(RTC_STATUSB, RTCSB_24HR); + writertc(RTC_STATUSB, RTCSB_PINTR | RTCSB_24HR); } diff --git a/sys/amd64/isa/clock.c b/sys/amd64/isa/clock.c index 1835e22700e9..39dc767f6925 100644 --- a/sys/amd64/isa/clock.c +++ b/sys/amd64/isa/clock.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * from: @(#)clock.c 7.2 (Berkeley) 5/12/91 - * $Id: clock.c,v 1.19 1994/09/18 23:08:55 bde Exp $ + * $Id: clock.c,v 1.20 1994/09/20 00:31:05 ache Exp $ */ /* @@ -514,7 +514,7 @@ void resettodr() writertc(RTC_DAY, int2bcd(tm+1)); /* Write back Day */ /* enable time updates */ - writertc(RTC_STATUSB, RTCSB_24HR); + writertc(RTC_STATUSB, RTCSB_PINTR | RTCSB_24HR); } diff --git a/sys/i386/i386/tsc.c b/sys/i386/i386/tsc.c index 1835e22700e9..39dc767f6925 100644 --- a/sys/i386/i386/tsc.c +++ b/sys/i386/i386/tsc.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * from: @(#)clock.c 7.2 (Berkeley) 5/12/91 - * $Id: clock.c,v 1.19 1994/09/18 23:08:55 bde Exp $ + * $Id: clock.c,v 1.20 1994/09/20 00:31:05 ache Exp $ */ /* @@ -514,7 +514,7 @@ void resettodr() writertc(RTC_DAY, int2bcd(tm+1)); /* Write back Day */ /* enable time updates */ - writertc(RTC_STATUSB, RTCSB_24HR); + writertc(RTC_STATUSB, RTCSB_PINTR | RTCSB_24HR); } diff --git a/sys/i386/isa/clock.c b/sys/i386/isa/clock.c index 1835e22700e9..39dc767f6925 100644 --- a/sys/i386/isa/clock.c +++ b/sys/i386/isa/clock.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * from: @(#)clock.c 7.2 (Berkeley) 5/12/91 - * $Id: clock.c,v 1.19 1994/09/18 23:08:55 bde Exp $ + * $Id: clock.c,v 1.20 1994/09/20 00:31:05 ache Exp $ */ /* @@ -514,7 +514,7 @@ void resettodr() writertc(RTC_DAY, int2bcd(tm+1)); /* Write back Day */ /* enable time updates */ - writertc(RTC_STATUSB, RTCSB_24HR); + writertc(RTC_STATUSB, RTCSB_PINTR | RTCSB_24HR); } diff --git a/sys/isa/atrtc.c b/sys/isa/atrtc.c index 1835e22700e9..39dc767f6925 100644 --- a/sys/isa/atrtc.c +++ b/sys/isa/atrtc.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * from: @(#)clock.c 7.2 (Berkeley) 5/12/91 - * $Id: clock.c,v 1.19 1994/09/18 23:08:55 bde Exp $ + * $Id: clock.c,v 1.20 1994/09/20 00:31:05 ache Exp $ */ /* @@ -514,7 +514,7 @@ void resettodr() writertc(RTC_DAY, int2bcd(tm+1)); /* Write back Day */ /* enable time updates */ - writertc(RTC_STATUSB, RTCSB_24HR); + writertc(RTC_STATUSB, RTCSB_PINTR | RTCSB_24HR); }