Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Dec 2003 09:19:03 +1100 (EST)
From:      Bruce Evans <bde@zeta.org.au>
To:        Poul-Henning Kamp <phk@phk.freebsd.dk>
Cc:        Freebsd Current <current@FreeBSD.org>
Subject:   Re: SC520 and reboot 
Message-ID:  <20031214090456.Q7016@gamplex.bde.org>
In-Reply-To: <23707.1071348202@critter.freebsd.dk>
References:  <23707.1071348202@critter.freebsd.dk>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 13 Dec 2003, Poul-Henning Kamp wrote:
> If you run adjkerntz -a it fiddles the CMOS RTC clock and possibly the
> "century" byte I think.  If your BIOS uses a checksum on the RTC and
> adjkerntz doesn't know about it, your BIOS will think the contents is
> trashed.

Actually, adjkerntz -a uses the MI interface resettodr() to set the
hardware clock, CMOS or otherwise.  This has the same tiny chance of
trashing the clock than the MI syscall settimeofday() and a better
chance of setting it to the current time, since it has a smaller race
than settimeofday().  The CPU_ADJKERNTZ sysctl exists just to minimize
this race, but it has never really worked in at least the i386
implementation since resettodr() doesn't wait to sync with the hardware
so it sets a time that is wrong by an average half a second.

Bruce



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031214090456.Q7016>