Port-sgimips archive

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

Re: mec and resets



I wrote:

> > Is there some way to verify the watchdog is disabled? Or can we reconfigure
> > it's timeout?
> 
> How about this?

>       platform.bus_reset = crime_bus_reset;
>       platform.watchdog_reset = crime_watchdog_reset;
>       platform.watchdog_disable = crime_watchdog_disable;
> +#ifdef CRIME_DISABLE_WATCHDOG
> +     platform.watchdog_enable = crime_watchdog_disable;
> +#else
>       platform.watchdog_enable = crime_watchdog_reset;
> +#endif
>       platform.intr_establish = crime_intr_establish;
>       platform.intr0 = crime_intr;
>  }

Ah, this still causes reboot on RB_ASKNAME prompt.
We also have to set platform.watchdog_reset:

---
Index: dev/crime.c
===================================================================
RCS file: /cvsroot/src/sys/arch/sgimips/dev/crime.c,v
retrieving revision 1.29
diff -u -r1.29 crime.c
--- dev/crime.c 26 May 2008 15:59:30 -0000      1.29
+++ dev/crime.c 2 Aug 2008 23:04:26 -0000
@@ -173,9 +179,14 @@
        bus_space_write_8(crm_iot, crm_ioh, CRIME_HARDINT, 0);
 
        platform.bus_reset = crime_bus_reset;
-       platform.watchdog_reset = crime_watchdog_reset;
        platform.watchdog_disable = crime_watchdog_disable;
+#ifdef CRIME_DISABLE_WATCHDOG
+       platform.watchdog_enable = crime_watchdog_disable;
+       platform.watchdog_reset = crime_watchdog_disable;
+#else
        platform.watchdog_enable = crime_watchdog_reset;
+       platform.watchdog_reset = crime_watchdog_reset;
+#endif
        platform.intr_establish = crime_intr_establish;
        platform.intr0 = crime_intr;
 }
---
Izumi Tsutsui


Home | Main Index | Thread Index | Old Index