Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/i386/pci Suppress false 'WARNING: LAST RESET DUE TO...



details:   https://anonhg.NetBSD.org/src/rev/c433c63a8652
branches:  trunk
changeset: 584531:c433c63a8652
user:      dyoung <dyoung%NetBSD.org@localhost>
date:      Thu Sep 22 19:34:58 2005 +0000

description:
Suppress false 'WARNING: LAST RESET DUE TO WATCHDOG EXPIRATION!'
indications by clearing the WDOVF status flag for real.  The way
to do that is by writing 1, not 0.

diffstat:

 sys/arch/i386/pci/geode.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (29 lines):

diff -r 88db5cb3a698 -r c433c63a8652 sys/arch/i386/pci/geode.c
--- a/sys/arch/i386/pci/geode.c Thu Sep 22 18:57:39 2005 +0000
+++ b/sys/arch/i386/pci/geode.c Thu Sep 22 19:34:58 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: geode.c,v 1.1 2005/09/22 07:09:35 dyoung Exp $ */
+/*     $NetBSD: geode.c,v 1.2 2005/09/22 19:34:58 dyoung Exp $ */
 
 /*-
  * Copyright (c) 2005 David Young.  All rights reserved.
@@ -76,7 +76,7 @@
 
 #include <sys/cdefs.h>
 
-__KERNEL_RCSID(0, "$NetBSD: geode.c,v 1.1 2005/09/22 07:09:35 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: geode.c,v 1.2 2005/09/22 19:34:58 dyoung Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -261,8 +261,9 @@
                printf("%s: WARNING: LAST RESET DUE TO WATCHDOG EXPIRATION!\n",
                    sc->sc_dev.dv_xname);
 
+       /* reset WDOVF by writing 1 to it */
        bus_space_write_1(sc->sc_iot, sc->sc_ioh, SC1100_GCB_WDSTS,
-           wdsts & ~SC1100_WDSTS_WDOVF);
+           wdsts & SC1100_WDSTS_WDOVF);
 
        /*
         * Hook up the watchdog timer.



Home | Main Index | Thread Index | Old Index