Update of /cvsroot/gc-linux/linux/arch/ppc/platforms
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26458/arch/ppc/platforms
Modified Files:
gamecube.c
Log Message:
- Disable IRQs before halt/poweroff/reboot.
- Kill off another instance of GAMECUBE_OUT() for writeb().
Index: gamecube.c
===================================================================
RCS file: /cvsroot/gc-linux/linux/arch/ppc/platforms/gamecube.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- gamecube.c 25 Apr 2004 18:57:12 -0000 1.15
+++ gamecube.c 16 May 2004 21:05:57 -0000 1.16
@@ -49,14 +49,15 @@
static void
gamecube_restart(char *cmd)
{
- printk("gamecube_restart()\n");
- GAMECUBE_OUT(GAMECUBE_RESET, 0);
+ local_irq_disable();
+ writeb(0x00, GAMECUBE_RESET);
}
static void
gamecube_power_off(void)
{
- for(;;);
+ local_irq_disable();
+ for (;;); /* Wait until power button depressed */
}
static void
|