Subject: Re: O2 sync almost done
To: Rafal Boni <rafal@attbi.com>
From: Christopher SEKIYA <wileyc@rezrov.net>
List: port-sgimips
Date: 01/08/2003 15:57:35
On Wed, Jan 08, 2003 at 12:29:41AM -0500, Rafal Boni wrote:

> I am not sure where the century value gets tucked; it could be in DOW or
> maybe in the NVRAM?

According to the DS17287 docs, the century byte is located in bank 1, offset
0x48.  Probably should initialize the clock to bank 1 and leave it there,
possibly split off ds17287-specific clock get/set routines from the stock
mcclock routines as there's no century provision in the base code.

> 	* I bet fixing the latter will make things happy for both IRIX/
> 	  ARCS and NetBSD.

I think the IRIX<->mcclock fixup macro may be incorrect as well.  A quick
hack to force the century byte to 20 results in twenty, fifty, and eighty
year offsets :)

-- Chris
	GPG key FEB9DE7F (91AF 4534 4529 4BCC 31A5  938E 023E EEFB FEB9 DE7F)