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/atari | |
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/atari')
-rw-r--r-- | sys/arch/atari/atari/machdep.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sys/arch/atari/atari/machdep.c b/sys/arch/atari/atari/machdep.c index dc92e536670..c6ce1d2e091 100644 --- a/sys/arch/atari/atari/machdep.c +++ b/sys/arch/atari/atari/machdep.c @@ -780,9 +780,14 @@ bootsync(void) /* * 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"); + } } } |