summaryrefslogtreecommitdiff
path: root/sys/arch/alpha
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2006-01-17 20:29:00 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2006-01-17 20:29:00 +0000
commitd07f8725bf1d589c479f3d998834e287acdcbde1 (patch)
tree0f655072d47d0690d28e3b6720cb56a2d122a3a4 /sys/arch/alpha
parent97bd1b5d8c73fe02c8bef515d3d88c5e8673c2c3 (diff)
Do not invoke resettodr() on shutdown if we have been sitting in ddb.
Diffstat (limited to 'sys/arch/alpha')
-rw-r--r--sys/arch/alpha/alpha/machdep.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/sys/arch/alpha/alpha/machdep.c b/sys/arch/alpha/alpha/machdep.c
index 397c90cbad9..9e24c5377be 100644
--- a/sys/arch/alpha/alpha/machdep.c
+++ b/sys/arch/alpha/alpha/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.95 2005/11/23 01:59:02 martin Exp $ */
+/* $OpenBSD: machdep.c,v 1.96 2006/01/17 20:28:59 miod Exp $ */
/* $NetBSD: machdep.c,v 1.210 2000/06/01 17:12:38 thorpej Exp $ */
/*-
@@ -1112,9 +1112,14 @@ boot(howto)
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 has been sitting in ddb.
*/
- resettodr();
+ if ((howto & RB_TIMEBAD) == 0) {
+ resettodr();
+ } else {
+ printf("WARNING: not updating battery clock\n");
+ }
}
/* Disable interrupts. */