Update of /cvsroot/linux-mips/linux/arch/mips/sgi-ip22
In directory usw-pr-cvs1:/tmp/cvs-serv26996/arch/mips/sgi-ip22
Modified Files:
ip22-mc.c
Log Message:
IP22 watchdog.
Index: ip22-mc.c
===================================================================
RCS file: /cvsroot/linux-mips/linux/arch/mips/sgi-ip22/ip22-mc.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- ip22-mc.c 27 Nov 2001 17:59:52 -0000 1.1
+++ ip22-mc.c 26 Feb 2002 17:46:06 -0000 1.2
@@ -82,6 +82,14 @@
* interrupts are first enabled etc.
*/
+ /* Step 0: Make sure we turn off the watchdog in case it's
+ * still running (which might be the case after a
+ * soft reboot).
+ */
+ tmpreg = mcmisc_regs->cpuctrl0;
+ tmpreg &= ~SGIMC_CCTRL0_WDOG;
+ mcmisc_regs->cpuctrl0 = tmpreg;
+
/* Step 1: The CPU/GIO error status registers will not latch
* up a new error status until the register has been
* cleared by the cpu. These status registers are
|