diff options
author | dwmalone <dwmalone@FreeBSD.org> | 2007-07-29 20:16:48 +0000 |
---|---|---|
committer | dwmalone <dwmalone@FreeBSD.org> | 2007-07-29 20:16:48 +0000 |
commit | e60800b65b41512d593cde1f30fc6796e99c6420 (patch) | |
tree | 8045af4e43b84240d4645ebbacb431c5a181c9f9 /sys/pc98/cbus | |
parent | b1cc9aa20352176daa954360f296d50b27332263 (diff) | |
download | FreeBSD-src-e60800b65b41512d593cde1f30fc6796e99c6420.zip FreeBSD-src-e60800b65b41512d593cde1f30fc6796e99c6420.tar.gz |
Mfi386 revision 1.239 of src/sys/i386/isa/clock.c. Seemingly some
pc98 motherboards do not provide us with the correct day of week
either. Ignore the day of week when setting the clock here too.
Approved by: re (bmah)
Requested from: nyan
MFC after: 3 weeks
Diffstat (limited to 'sys/pc98/cbus')
-rw-r--r-- | sys/pc98/cbus/clock.c | 3 | ||||
-rw-r--r-- | sys/pc98/cbus/pcrtc.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/sys/pc98/cbus/clock.c b/sys/pc98/cbus/clock.c index 7b993dc..037ef40 100644 --- a/sys/pc98/cbus/clock.c +++ b/sys/pc98/cbus/clock.c @@ -638,7 +638,8 @@ inittodr(time_t base) ct.year = bcd2bin(rtc_inb() & 0xff) + 1900; /* year */ if (ct.year < 1995) ct.year += 100; - /* Should we set dow = -1 because some clocks don't set it correctly? */ + /* Set dow = -1 because some clocks don't set it correctly. */ + ct.dow = -1; if (clock_ct_to_ts(&ct, &ts)) { printf("Invalid time in clock: check and reset the date!\n"); return; diff --git a/sys/pc98/cbus/pcrtc.c b/sys/pc98/cbus/pcrtc.c index 7b993dc..037ef40 100644 --- a/sys/pc98/cbus/pcrtc.c +++ b/sys/pc98/cbus/pcrtc.c @@ -638,7 +638,8 @@ inittodr(time_t base) ct.year = bcd2bin(rtc_inb() & 0xff) + 1900; /* year */ if (ct.year < 1995) ct.year += 100; - /* Should we set dow = -1 because some clocks don't set it correctly? */ + /* Set dow = -1 because some clocks don't set it correctly. */ + ct.dow = -1; if (clock_ct_to_ts(&ct, &ts)) { printf("Invalid time in clock: check and reset the date!\n"); return; |