From: kstailey Date: Thu, 16 Jan 1997 04:22:49 +0000 (+0000) Subject: machdep.c X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=ade2bb3233425f5d616fc4dd9d4a950279df40bb;p=openbsd machdep.c --- diff --git a/sys/arch/sun3/sun3/machdep.c b/sys/arch/sun3/sun3/machdep.c index 4d2329f52da..6f397c00a64 100644 --- a/sys/arch/sun3/sun3/machdep.c +++ b/sys/arch/sun3/sun3/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.11 1997/01/16 04:04:28 kstailey Exp $ */ +/* $OpenBSD: machdep.c,v 1.12 1997/01/16 04:22:49 kstailey Exp $ */ /* $NetBSD: machdep.c,v 1.77 1996/10/13 03:47:51 christos Exp $ */ /* @@ -815,13 +815,11 @@ reboot2(howto, user_boot_string) reboot_sync(); /* * If we've been adjusting the clock, the todr - * will be out of synch; adjust it now. - * - * XXX - However, if the kernel has been sitting in ddb, - * the time will be way off, so don't set the HW clock! - * XXX - Should do sanity check against HW clock. -gwr + * will be out of synch; adjust it now unless + * the system was sitting in ddb. */ - /* resettodr(); */ + if ((howto & RB_TIMEBAD) == 0) { + resettodr(); } /* Disable interrupts. */