Commit 0b0f8092 authored by Anton Blanchard's avatar Anton Blanchard

ppc64: Add halt option to xmon, from Peter Bergner

parent febda3e4
...@@ -181,6 +181,7 @@ Commands:\n\ ...@@ -181,6 +181,7 @@ Commands:\n\
T Enable/Disable PPCDBG flags\n\ T Enable/Disable PPCDBG flags\n\
x exit monitor\n\ x exit monitor\n\
z reboot\n\ z reboot\n\
Z halt\n\
"; ";
static int xmon_trace[NR_CPUS]; static int xmon_trace[NR_CPUS];
...@@ -620,8 +621,13 @@ cmds(struct pt_regs *excp) ...@@ -620,8 +621,13 @@ cmds(struct pt_regs *excp)
} }
switch (cmd) { switch (cmd) {
case 'z': case 'z':
printf("Rebooting machine now...");
machine_restart(NULL); machine_restart(NULL);
break; break;
case 'Z':
printf("Halting machine now...");
machine_halt();
break;
case 'm': case 'm':
cmd = inchar(); cmd = inchar();
switch (cmd) { switch (cmd) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment