/*
* If we've been adjusting the clock, the todr
- * will be out of synch; adjust it now.
+ * will be out of synch; adjust it now unless
+ * the system was sitting in ddb.
*/
- resettodr();
+ if ((howto & RB_TIMEBAD) == 0) {
+ resettodr();
+ } else {
+ printf("WARNING: not updating battery clock\n");
+ }
}
}
-/* $OpenBSD: machdep.c,v 1.10 1997/01/15 04:54:45 downsj Exp $ */
+/* $OpenBSD: machdep.c,v 1.11 1997/01/16 20:43:33 kstailey Exp $ */
/* $NetBSD: machdep.c,v 1.77 1996/12/11 16:49:23 thorpej Exp $ */
/*
vfs_shutdown();
/*
* If we've been adjusting the clock, the todr
- * will be out of synch; adjust it now.
+ * will be out of synch; adjust it now unless
+ * the system was sitting in ddb.
*/
- resettodr();
+ if ((howto & RB_TIMEBAD) == 0) {
+ resettodr();
+ } else {
+ printf("WARNING: not updating battery clock\n");
+ }
}
/* Disable interrupts. */
-/* $OpenBSD: machdep.c,v 1.24 1996/11/05 01:40:29 briggs Exp $ */
+/* $OpenBSD: machdep.c,v 1.25 1997/01/16 20:43:36 kstailey Exp $ */
/* $NetBSD: machdep.c,v 1.122 1996/10/15 06:40:39 scottr Exp $ */
/*
#ifdef notyet
/*
* If we've been adjusting the clock, the todr
- * will be out of synch; adjust it now.
+ * will be out of synch; adjust it now unless
+ * the system was sitting in ddb.
*/
- resettodr();
+ if ((howto & RB_TIMEBAD) == 0) {
+ resettodr();
+ } else {
+ printf("WARNING: not updating battery clock\n");
+ }
#else
# ifdef DIAGNOSTIC
printf("NetBSD/mac68k does not trust itself to update the "
-/* $OpenBSD: machdep.c,v 1.12 1996/07/27 11:40:42 deraadt Exp $ */
+/* $OpenBSD: machdep.c,v 1.13 1997/01/16 20:43:38 kstailey Exp $ */
/*
* Copyright (c) 1995 Theo de Raadt
vfs_shutdown();
/*
* If we've been adjusting the clock, the todr
- * will be out of synch; adjust it now.
+ * will be out of synch; adjust it now unless
+ * the system was sitting in ddb.
*/
- resettodr();
+ if ((howto & RB_TIMEBAD) == 0) {
+ resettodr();
+ } else {
+ printf("WARNING: not updating battery clock\n");
+ }
}
splhigh(); /* extreme priority */
if (howto&RB_HALT) {
printf("done\n");
/*
* If we've been adjusting the clock, the todr
- * will be out of synch; adjust it now.
+ * will be out of synch; adjust it now unless
+ * the system was sitting in ddb.
*/
- resettodr();
+ if ((howto & RB_TIMEBAD) == 0) {
+ resettodr();
+ } else {
+ printf("WARNING: not updating battery clock\n");
+ }
}
}
/*
* If we've been adjusting the clock, the todr
- * will be out of synch; adjust it now.
+ * will be out of synch; adjust it now unless
+ * the system was sitting in ddb.
*/
- resettodr();
+ if ((howto & RB_TIMEBAD) == 0) {
+ resettodr();
+ } else {
+ printf("WARNING: not updating battery clock\n");
+ }
}
/* Disable interrupts. */
-/* $OpenBSD: machdep.c,v 1.2 1996/12/28 06:22:05 rahnds Exp $ */
+/* $OpenBSD: machdep.c,v 1.3 1997/01/16 20:43:44 kstailey Exp $ */
/* $NetBSD: machdep.c,v 1.4 1996/10/16 19:33:11 ws Exp $ */
/*
if (!cold && !(howto & RB_NOSYNC) && !syncing) {
syncing = 1;
vfs_shutdown(); /* sync */
- resettodr(); /* set wall clock */
+ /*
+ * If we've been adjusting the clock, the todr
+ * will be out of synch; adjust it now unless
+ * the system was sitting in ddb.
+ */
+ if ((howto & RB_TIMEBAD) == 0) {
+ resettodr();
+ } else {
+ printf("WARNING: not updating battery clock\n");
+ }
}
splhigh();
if (howto & RB_HALT) {
-/* $OpenBSD: machdep.c,v 1.10 1997/01/15 23:25:17 maja Exp $ */
+/* $OpenBSD: machdep.c,v 1.11 1997/01/16 20:43:45 kstailey Exp $ */
/* $NetBSD: machdep.c,v 1.35 1997/01/11 11:31:26 ragge Exp $ */
/*
* If we've been adjusting the clock, the todr will be out of
* synch; adjust it now.
*/
- resettodr();
+ /*
+ * If we've been adjusting the clock, the todr
+ * will be out of synch; adjust it now unless
+ * the system was sitting in ddb.
+ */
+ if ((howto & RB_TIMEBAD) == 0) {
+ resettodr();
+ } else {
+ printf("WARNING: not updating battery clock\n");
+ }
}
splhigh(); /* extreme priority */
if (howto & RB_HALT) {