Subject: port-mac/2111: Clock slowdown affects MacOS RTC
To: None <gnats-bugs@NetBSD.ORG>
From: Walter Ruetten <walter@ghpc8.ihf.rwth-aachen.de>
List: netbsd-bugs
Date: 02/22/1996 21:22:25
>Number:         2111
>Category:       port-mac
>Synopsis:       Clock slowdown in NetBSD/mac68k affects RTC on the MacOS side
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Thu Feb 22 15:50:04 1996
>Last-Modified:
>Originator:     Walter Ruetten
>Organization:

>Release:        1.1
>Environment:
Mac IIvi, NetBSD/mac68k
System: NetBSD islington.ihf.rwth-aachen.de 1.1A NetBSD 1.1A (ISLINGTON) #278: Tue Feb 20 19:39:14 MET 1996 walter@islington.ihf.rwth-aachen.de:/usr/src/sys/arch/mac68k.vi/compile/ISLINGTON mac68k


>Description:
The slow running software clock of NetBSD/mac68k gets written back to the RTC
during shutdown. This would only be a good idea when a reference clock is
connected to the machine or when ntpdate or rdate are used frequently.

>How-To-Repeat:
Boot NetBSD/mac68k, do some compilation, do a shutdown.
Check time when rebooting MacOS.

>Fix:
Avoid write back of kernel clock during shutdown,
even if we _can_ write to the RTC.

*** ../mac68k/mac68k/clock.c	Sun Feb  4 14:01:53 1996
--- mac68k/clock.c	Tue Feb 20 19:53:44 1996
***************
*** 387,393 ****
  void 
  resettodr(void)
  {
! 	if (mac68k_trust_pram)
  		/*
  		 * GMT bias is passed in from the Booter.
  		 * To get *our* time, add GMTBIAS to GMT.
--- 387,393 ----
  void 
  resettodr(void)
  {
! 	if (0 && mac68k_trust_pram)
  		/*
  		 * GMT bias is passed in from the Booter.
  		 * To get *our* time, add GMTBIAS to GMT.

>Audit-Trail:
>Unformatted: