From bd7fbb457605e2f68a21bceee7c234a1b1b96ef5 Mon Sep 17 00:00:00 2001 From: kstailey Date: Thu, 16 Jan 1997 20:43:46 +0000 Subject: do not call resettodr() if RB_TIMEBAD is set due to being in ddb with clock updates suspended --- sys/arch/mvme68k/mvme68k/machdep.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'sys/arch/mvme68k') diff --git a/sys/arch/mvme68k/mvme68k/machdep.c b/sys/arch/mvme68k/mvme68k/machdep.c index 80bf5a7cd33..57fec537bcf 100644 --- a/sys/arch/mvme68k/mvme68k/machdep.c +++ b/sys/arch/mvme68k/mvme68k/machdep.c @@ -1,4 +1,4 @@ -/* $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 @@ -1104,9 +1104,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 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) { -- cgit v1.2.3