From aeb4f125a5849e3a1147b11cb0b2e1d765605f65 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=E9=BB=84=E6=B6=9B?= Date: Sun, 27 May 2012 18:44:46 +0800 Subject: [PATCH] rk: fiq_debugger: support reboot with command --- arch/arm/common/fiq_debugger.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/common/fiq_debugger.c b/arch/arm/common/fiq_debugger.c index d0a8aa8a3216..c95af41324a9 100644 --- a/arch/arm/common/fiq_debugger.c +++ b/arch/arm/common/fiq_debugger.c @@ -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")) { -- 2.34.1