From owner-freebsd-current@FreeBSD.ORG Wed Jul 11 22:14:56 2007 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B532416A400 for ; Wed, 11 Jul 2007 22:14:56 +0000 (UTC) (envelope-from freebsd-current@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id 6FD7013C46C for ; Wed, 11 Jul 2007 22:14:56 +0000 (UTC) (envelope-from freebsd-current@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1I8kSS-0006g5-4S for freebsd-current@freebsd.org; Thu, 12 Jul 2007 00:14:52 +0200 Received: from 78-1-126-227.adsl.net.t-com.hr ([78.1.126.227]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 12 Jul 2007 00:14:52 +0200 Received: from ivoras by 78-1-126-227.adsl.net.t-com.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 12 Jul 2007 00:14:52 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-current@freebsd.org From: Ivan Voras Date: Thu, 12 Jul 2007 00:14:43 +0200 Lines: 20 Message-ID: References: <20070709214216.GA72912@walton.maths.tcd.ie> <20070711132202.GA95487@walton.maths.tcd.ie> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 78-1-126-227.adsl.net.t-com.hr User-Agent: Thunderbird 1.5.0.12 (Windows/20070509) In-Reply-To: <20070711132202.GA95487@walton.maths.tcd.ie> Sender: news Cc: freebsd-hackers@freebsd.org Subject: Re: Debugging times X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jul 2007 22:14:56 -0000 David Malone wrote: > http://www.maths.tcd.ie/~dwmalone/clock.patch > > It checks the return values of the various clock reading functions > in the kernel and prints an error message if it finds that it can't > set the clock OK. Some machines have a BIOS that doesn't count the > day-of-week correctly, and recently FreeBSD has started treating > this as an error on some platforms. > > (This patch won't fix anything, but might produce a more informative > error message.) I've got interesting results (in the bad sense of the phrase): I do get the message "Invalid time in real time clock. Check and reset the time immediately" (the i386 message) BUT my time gets reset to 0 (midnight 1970.) I see your patch and it shouldn't do that. Could it be a compiler bug, so the effects change after trivial code has been changed?