From c30c4f6198157709ed26516fd8d8a998c54c3627 Mon Sep 17 00:00:00 2001 From: iwasaki Date: Wed, 18 Sep 2002 07:34:04 +0000 Subject: Restore status register A of RTC at resume time. This should fix the 'too many RTC interrupts and statclock seems broken after resume' problem. MFC after: 1 week --- sys/i386/i386/tsc.c | 1 + sys/i386/isa/clock.c | 1 + 2 files changed, 2 insertions(+) (limited to 'sys/i386') diff --git a/sys/i386/i386/tsc.c b/sys/i386/i386/tsc.c index 52e1932..539a460 100644 --- a/sys/i386/i386/tsc.c +++ b/sys/i386/i386/tsc.c @@ -719,6 +719,7 @@ rtc_restore(void) /* Reenable RTC updates and interrupts. */ /* XXX locking is needed for RTC access? */ + writertc(RTC_STATUSA, rtc_statusa); writertc(RTC_STATUSB, RTCSB_HALT | RTCSB_24HR); writertc(RTC_STATUSB, rtc_statusb); } diff --git a/sys/i386/isa/clock.c b/sys/i386/isa/clock.c index 52e1932..539a460 100644 --- a/sys/i386/isa/clock.c +++ b/sys/i386/isa/clock.c @@ -719,6 +719,7 @@ rtc_restore(void) /* Reenable RTC updates and interrupts. */ /* XXX locking is needed for RTC access? */ + writertc(RTC_STATUSA, rtc_statusa); writertc(RTC_STATUSB, RTCSB_HALT | RTCSB_24HR); writertc(RTC_STATUSB, rtc_statusb); } -- cgit v1.1