Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/sh3/sh3 Fix RWKREG register reset code in resettodr().



details:   https://anonhg.NetBSD.org/src/rev/fc8db8b7a9f4
branches:  trunk
changeset: 476639:fc8db8b7a9f4
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Thu Sep 23 05:34:03 1999 +0000

description:
Fix RWKREG register reset code in resettodr().

diffstat:

 sys/arch/sh3/sh3/clock.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 5575209a9207 -r fc8db8b7a9f4 sys/arch/sh3/sh3/clock.c
--- a/sys/arch/sh3/sh3/clock.c  Thu Sep 23 04:02:27 1999 +0000
+++ b/sys/arch/sh3/sh3/clock.c  Thu Sep 23 05:34:03 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: clock.c,v 1.2 1999/09/16 21:17:46 msaitoh Exp $        */
+/*     $NetBSD: clock.c,v 1.3 1999/09/23 05:34:03 msaitoh Exp $        */
 
 /*-
  * Copyright (c) 1993, 1994 Charles Hannum.
@@ -461,7 +461,7 @@
        SHREG_RHRCNT = dectohexdec(n / 60);
 
        n = (time.tv_sec - diff) / (3600 * 24); /* days */
-       SHREG_RDAYCNT = (n + 4) % 7;  /* 1/1/70 is Thursday */
+       SHREG_RWKCNT = (n + 4) % 7;  /* 1/1/70 is Thursday */
 
        for (j = 1970, i = yeartoday(j); n >= i; j++, i = yeartoday(j))
                n -= i;



Home | Main Index | Thread Index | Old Index