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\
T Enable/Disable PPCDBG flags\n\
x exit monitor\n\
z reboot\n\
Z halt\n\
";
static int xmon_trace[NR_CPUS];
......@@ -620,8 +621,13 @@ cmds(struct pt_regs *excp)
}
switch (cmd) {
case 'z':
printf("Rebooting machine now...");
machine_restart(NULL);
break;
case 'Z':
printf("Halting machine now...");
machine_halt();
break;
case 'm':
cmd = inchar();
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