Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/hpcmips/tx initialize sc_epoch and RTC properly whe...
details: https://anonhg.NetBSD.org/src/rev/93ef5660da83
branches: trunk
changeset: 556908:93ef5660da83
user: shin <shin%NetBSD.org@localhost>
date: Tue Dec 30 03:54:35 2003 +0000
description:
initialize sc_epoch and RTC properly when reboot/resume.
Addresses PR/20091.
diffstat:
sys/arch/hpcmips/tx/tx39clock.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (36 lines):
diff -r bae6b9550c32 -r 93ef5660da83 sys/arch/hpcmips/tx/tx39clock.c
--- a/sys/arch/hpcmips/tx/tx39clock.c Tue Dec 30 03:52:01 2003 +0000
+++ b/sys/arch/hpcmips/tx/tx39clock.c Tue Dec 30 03:54:35 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tx39clock.c,v 1.15 2003/09/26 15:34:11 simonb Exp $ */
+/* $NetBSD: tx39clock.c,v 1.16 2003/12/30 03:54:35 shin Exp $ */
/*-
* Copyright (c) 1999-2002 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tx39clock.c,v 1.15 2003/09/26 15:34:11 simonb Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tx39clock.c,v 1.16 2003/12/30 03:54:35 shin Exp $");
#include "opt_tx39clock_debug.h"
@@ -286,6 +286,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;
@@ -318,6 +320,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