From owner-cvs-src@FreeBSD.ORG Fri Apr 22 05:04:59 2005 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0F90E16A4CE; Fri, 22 Apr 2005 05:04:59 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id DBA4943D46; Fri, 22 Apr 2005 05:04:58 +0000 (GMT) (envelope-from marcel@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j3M54wA1001552; Fri, 22 Apr 2005 05:04:58 GMT (envelope-from marcel@repoman.freebsd.org) Received: (from marcel@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j3M54wwL001551; Fri, 22 Apr 2005 05:04:58 GMT (envelope-from marcel) Message-Id: <200504220504.j3M54wwL001551@repoman.freebsd.org> From: Marcel Moolenaar Date: Fri, 22 Apr 2005 05:04:58 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/conf files.ia64 src/sys/ia64/ia64 clock.c clock_if.m eficlock.c src/sys/ia64/include clockvar.h X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Apr 2005 05:04:59 -0000 marcel 2005-04-22 05:04:58 UTC FreeBSD src repository Modified files: sys/conf files.ia64 sys/ia64/ia64 clock.c Removed files: sys/ia64/ia64 clock_if.m eficlock.c sys/ia64/include clockvar.h Log: Sanity the RTC code: o Remove the clock interface. Not only does it conflict with the MI version when device genclock is added to the kernel, it was also not possible to have more than 1 clock device. This of course would have been a problem if we actually had more than 1 clock device. In short: we don't need a clock interface and if we do eventually, we should be using the MI one. o Rewrite inittodr() and resettodr() to take into account that: 1) We use the EFI interface directly. 2) time_t is 64-bit and we do need to make sure we can determine leap years from year 2100 and on. Add a nice explanation of where leap years come from and why. 3) This rewrite happened in 2005 so any date prior to 1/1/2005 (either M/D/Y or D/M/Y) is bogus. Reprogram the EFI clock with 1/1/2005 in that case. 4) The EFI clock has a high probability of being correct, so only (further) correct the EFI clock when the file system time is larger. That should never happen in a time-synchronised world. Complain when EFI lost 2 days or more. Replace the copyright notice now that I (pretty much) rewrote all of this file. Revision Changes Path 1.76 +0 -2 src/sys/conf/files.ia64 1.25 +132 -184 src/sys/ia64/ia64/clock.c 1.4 +0 -52 src/sys/ia64/ia64/clock_if.m (dead) 1.4 +0 -111 src/sys/ia64/ia64/eficlock.c (dead) 1.4 +0 -53 src/sys/ia64/include/clockvar.h (dead)