diff options
author | 2006-01-22 15:24:29 +0000 | |
---|---|---|
committer | 2006-01-22 15:24:29 +0000 | |
commit | f9c1356a4dc9f36528a3b7856724b49fa21e3c36 (patch) | |
tree | db288acee7805a57b119af045dc2d4d57a098688 | |
parent | Minimal iop code to set the serial ports to compatible mode automagically, (diff) | |
download | wireguard-openbsd-f9c1356a4dc9f36528a3b7856724b49fa21e3c36.tar.xz wireguard-openbsd-f9c1356a4dc9f36528a3b7856724b49fa21e3c36.zip |
Finally update the todclock on shutdown, if we are using a level 6 clock.
-rw-r--r-- | sys/arch/mac68k/mac68k/machdep.c | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/sys/arch/mac68k/mac68k/machdep.c b/sys/arch/mac68k/mac68k/machdep.c index b3c362c9dc4..477a8656944 100644 --- a/sys/arch/mac68k/mac68k/machdep.c +++ b/sys/arch/mac68k/mac68k/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.128 2006/01/22 13:53:16 miod Exp $ */ +/* $OpenBSD: machdep.c,v 1.129 2006/01/22 15:24:29 miod Exp $ */ /* $NetBSD: machdep.c,v 1.207 1998/07/08 04:39:34 thorpej Exp $ */ /* @@ -623,21 +623,22 @@ boot(howto) waittime = 0; vfs_shutdown(); - /* - * 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) { -#ifdef notyet - resettodr(); -#else + if (mac68k_machine.aux_interrupts != 0) { + /* + * 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"); + } + } else { #ifdef DIAGNOSTIC - printf("OpenBSD/mac68k does not trust itself to update the clock on shutdown.\n"); + printf("OpenBSD/mac68k does not trust itself to update" + " the clock on shutdown on this machine.\n"); #endif -#endif - } else { - printf("WARNING: not updating battery clock\n"); } } |