Re: rtc again...

2 messages, 2 authors, 2000-08-12 · open the first message on its own page

Re: rtc again...

From: Ethan Benson <hidden>
Date: 2000-08-12 12:02:51

On Sat, Aug 12, 2000 at 04:29:12PM +1000, Paul Mackerras wrote:
The get/set rtc stuff on powermac still needs work.  IMHO the way it
should work on powermacs is this:

- at boot, read the RTC and the xpram and apply the correction from
  the xpram

- /dev/rtc reads and writes the RTC value directly (no timezone
  correction)

- if the RTC is updated from other places in the kernel, read the
  timezone recorded in xpram and apply that correction before writing
  it to the RTC.
would this still allow for rtc in UTC?  for those of us who do not use MacOS..

-- 
Ethan Benson
http://www.alaska.net/~erbenson/

Re: rtc again...

From: Gabriel Paubert <hidden>
Date: 2000-08-12 12:51:26

On Sat, 12 Aug 2000, Ethan Benson wrote:
On Sat, Aug 12, 2000 at 04:29:12PM +1000, Paul Mackerras wrote:
quoted
The get/set rtc stuff on powermac still needs work.  IMHO the way it
should work on powermacs is this:

- at boot, read the RTC and the xpram and apply the correction from
  the xpram

- /dev/rtc reads and writes the RTC value directly (no timezone
  correction)

- if the RTC is updated from other places in the kernel, read the
  timezone recorded in xpram and apply that correction before writing
  it to the RTC.
would this still allow for rtc in UTC?  for those of us who do not use MacOS..
Of course, at least that's how I see it. Just set all the xpram clock
variables to zero. BTW, if MacOS X claims to be a true Unix, it should
also support it.

	Gabriel.


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help