diff options
author | kstailey <kstailey@cvs.openbsd.org> | 1997-01-16 20:43:46 +0000 |
---|---|---|
committer | kstailey <kstailey@cvs.openbsd.org> | 1997-01-16 20:43:46 +0000 |
commit | bd7fbb457605e2f68a21bceee7c234a1b1b96ef5 (patch) | |
tree | 2e205eb0c61f51cb39ab9d8c509bd7d2d7620db5 /sys/arch/hp300 | |
parent | a92f56b13fd3ba3ef0a28d0db5a07a6919db4040 (diff) |
do not call resettodr() if RB_TIMEBAD is set due to being in ddb with clock updates suspended
Diffstat (limited to 'sys/arch/hp300')
-rw-r--r-- | sys/arch/hp300/hp300/machdep.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/sys/arch/hp300/hp300/machdep.c b/sys/arch/hp300/hp300/machdep.c index ad7f0c41c57..a708637f4ac 100644 --- a/sys/arch/hp300/hp300/machdep.c +++ b/sys/arch/hp300/hp300/machdep.c @@ -1,4 +1,4 @@ -/* $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 $ */ /* @@ -1122,9 +1122,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"); + } } /* Disable interrupts. */ |