rk: fiq_debugger: support reboot with command
author黄涛 <huangtao@rock-chips.com>
Sun, 27 May 2012 10:44:46 +0000 (18:44 +0800)
committer黄涛 <huangtao@rock-chips.com>
Sun, 27 May 2012 10:45:06 +0000 (18:45 +0800)
arch/arm/common/fiq_debugger.c

index d0a8aa8a32160c88f5c56bd8e21bf221603e991b..c95af41324a9892a03407048bafd329ac7aebf0e 100644 (file)
@@ -658,6 +658,8 @@ static bool debug_fiq_exec(struct fiq_debugger_state *state,
                dump_stacktrace(state, (struct pt_regs *)regs, 100, svc_sp);
        } else if (!strcmp(cmd, "reboot")) {
                arch_reset(0, 0);
+       } else if (!strncmp(cmd, "reboot ", 7)) {
+               arch_reset(0, &cmd[7]);
        } else if (!strcmp(cmd, "irqs")) {
                dump_irqs(state);
        } else if (!strcmp(cmd, "kmsg")) {