Source-Changes-HG archive

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

[src/netbsd-1-6]: src/sys/arch/hpcmips/tx Pullup rev 1.16 (requested by shin ...



details:   https://anonhg.NetBSD.org/src/rev/54801184e2dd
branches:  netbsd-1-6
changeset: 531113:54801184e2dd
user:      jmc <jmc%NetBSD.org@localhost>
date:      Fri Mar 12 06:10:55 2004 +0000

description:
Pullup rev 1.16 (requested by shin in ticket #1588)

Initialize sc_epoch and RTC properly when reboot/resume.

diffstat:

 sys/arch/hpcmips/tx/tx39clock.c |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (27 lines):

diff -r 162943f96487 -r 54801184e2dd sys/arch/hpcmips/tx/tx39clock.c
--- a/sys/arch/hpcmips/tx/tx39clock.c   Fri Mar 12 06:10:01 2004 +0000
+++ b/sys/arch/hpcmips/tx/tx39clock.c   Fri Mar 12 06:10:55 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tx39clock.c,v 1.11 2002/01/29 18:53:15 uch Exp $ */
+/*     $NetBSD: tx39clock.c,v 1.11.10.1 2004/03/12 06:10:55 jmc Exp $ */
 
 /*-
  * Copyright (c) 1999-2002 The NetBSD Foundation, Inc.
@@ -285,6 +285,8 @@
                    (int)sec));
 
                sc->sc_enabled = 1;
+               clock_secs_to_ymdhms(base, &dt);
+               sc->sc_epoch = dt;
                base += sec;
        } else {
                dt.dt_year = sc->sc_year;
@@ -317,6 +319,8 @@
 
        if (sc->sc_enabled) {
                sc->sc_epoch = *dt;
+               __tx39timer_rtcreset(sc->sc_tc);
+               tx39clock_alarm_refill(sc->sc_tc);
        }
 }
 



Home | Main Index | Thread Index | Old Index