patch-2.1.29 linux/arch/sparc/kernel/process.c
Next file: linux/arch/sparc/kernel/ptrace.c
Previous file: linux/arch/sparc/kernel/head.S
Back to the patch index
Back to the overall index
- Lines: 53
- Date:
Wed Mar 5 17:04:30 1997
- Orig file:
v2.1.28/linux/arch/sparc/kernel/process.c
- Orig date:
Sun Jan 26 02:07:06 1997
diff -u --recursive --new-file v2.1.28/linux/arch/sparc/kernel/process.c linux/arch/sparc/kernel/process.c
@@ -1,4 +1,4 @@
-/* $Id: process.c,v 1.89 1997/01/06 06:52:23 davem Exp $
+/* $Id: process.c,v 1.90 1997/01/31 23:26:16 tdyas Exp $
* linux/arch/sparc/kernel/process.c
*
* Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu)
@@ -25,6 +25,7 @@
#include <linux/config.h>
#include <linux/smp.h>
#include <linux/smp_lock.h>
+#include <linux/reboot.h>
#include <asm/auxio.h>
#include <asm/oplib.h>
@@ -154,7 +155,7 @@
extern int serial_console;
#endif
-void halt_now(void)
+void machine_halt(void)
{
sti();
udelay(8000);
@@ -167,7 +168,7 @@
panic("Halt failed!");
}
-void hard_reset_now(void)
+void machine_restart(char * cmd)
{
char *p;
@@ -181,10 +182,19 @@
if (!serial_console)
console_restore_palette ();
#endif
+ if (cmd)
+ prom_reboot(cmd);
if (*reboot_command)
- prom_reboot (reboot_command);
+ prom_reboot(reboot_command);
prom_feval ("reset");
panic("Reboot failed!");
+}
+
+void machine_power_off(void)
+{
+ if (auxio_power_register)
+ *auxio_power_register |= AUXIO_POWER_OFF;
+ machine_halt();
}
void show_regwindow(struct reg_window *rw)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov