patch-2.1.101 linux/arch/mips/sgi/kernel/reset.c

Next file: linux/arch/mips/sgi/kernel/setup.c
Previous file: linux/arch/mips/sgi/kernel/indy_timer.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.100/linux/arch/mips/sgi/kernel/reset.c linux/arch/mips/sgi/kernel/reset.c
@@ -1,25 +1,31 @@
 /*
- *  linux/arch/mips/sgi/kernel/process.c
- *
  *  Reset a SGI.
+ *
+ * This file is subject to the terms and conditions of the GNU General Public
+ * License.  See the file "COPYING" in the main directory of this archive
+ * for more details.
+ *
+ * Copyright (C) 1997, 1998 by Ralf Baechle
+ *
+ * $Id: reset.c,v 1.3 1998/05/01 01:35:18 ralf Exp $
  */
 #include <asm/io.h>
 #include <asm/system.h>
 #include <asm/reboot.h>
+#include <asm/sgialib.h>
 
 /* XXX How to pass the reboot command to the firmware??? */
 void sgi_machine_restart(char *command)
 {
-        for(;;)
-                prom_imode();
+	prom_reboot();
 }
 
 void sgi_machine_halt(void)
 {
-	/* XXX */
+	prom_imode();
 }
 
 void sgi_machine_power_off(void)
 {
-	/* XXX */
+	prom_powerdown();
 }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov