Date: Sun, 13 Feb 2000 11:30:13 +0800 From: Peter Wemm <peter@netplex.com.au> To: Brian Beattie <beattie@aracnet.com> Cc: hackers@FreeBSD.ORG Subject: Re: CMOS clock won't do 2000 Message-ID: <20000213033013.DBB531CD9@overcee.netplex.com.au> In-Reply-To: Message from Brian Beattie <beattie@aracnet.com> of "Sat, 12 Feb 2000 12:57:46 PST." <Pine.LNX.4.10.10002121248470.12446-100000@shell1.aracnet.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Brian Beattie wrote: > I have an older 486 system, running 3.4R that has a cmos clock that seems > to be unwilling to accept years out side the range 94-99. The bios seems > willing to set dates between 1994-2099, but after reboot any year not > between 94-99 is converted to {20,19}94. > > What I have done is to go into i386/isa/clock.c and in the routines > inittodr, resettodr, is to add 6 to and subtract 6 from the years > respectively. I was wondering if anybody had any better ideas. Also watch out for day-of-month and day-of-week calulations done in the cmos chip. It's a shame you couldn't set it for 1972 which matches the year 2000 date, day, and leap year sequences exactly. Cheers, -Peter To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000213033013.DBB531CD9>