mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
fiq_debugger: add pcsr command
Change-Id: I5af3ef7d00dc2a8e14ef719f0fc4cc683fb84463 Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
This commit is contained in:
@@ -54,6 +54,10 @@
|
||||
#include "fiq_debugger_priv.h"
|
||||
#include "fiq_debugger_ringbuf.h"
|
||||
|
||||
#ifdef CONFIG_ROCKCHIP_DEBUG
|
||||
#include "../../../soc/rockchip/rockchip_debug.h"
|
||||
#endif
|
||||
|
||||
#define DEBUG_MAX 64
|
||||
#define CMD_COUNT 0x0f
|
||||
#define MAX_UNHANDLED_FIQ_COUNT 1000000
|
||||
@@ -489,6 +493,9 @@ static char cmd_buf[][16] = {
|
||||
{"reboot"},
|
||||
{"irqs"},
|
||||
{"kmsg"},
|
||||
#ifdef CONFIG_ROCKCHIP_DEBUG
|
||||
{"pcsr"},
|
||||
#endif
|
||||
{"version"},
|
||||
{"sleep"},
|
||||
{"nosleep"},
|
||||
@@ -515,6 +522,9 @@ static void fiq_debugger_help(struct fiq_debugger_state *state)
|
||||
" reset [<c>] Hard reset with command <c>\n"
|
||||
" irqs Interupt status\n");
|
||||
fiq_debugger_printf(&state->output,
|
||||
#ifdef CONFIG_ROCKCHIP_DEBUG
|
||||
" pcsr Dump all cpus pc by DBGPCSR\n"
|
||||
#endif
|
||||
" kmsg Kernel log\n"
|
||||
" version Kernel version\n");
|
||||
fiq_debugger_printf(&state->output,
|
||||
@@ -623,6 +633,10 @@ static bool fiq_debugger_fiq_exec(struct fiq_debugger_state *state,
|
||||
fiq_debugger_dump_irqs(state);
|
||||
} else if (!strcmp(cmd, "kmsg")) {
|
||||
fiq_debugger_dump_kernel_log(state);
|
||||
#ifdef CONFIG_ROCKCHIP_DEBUG
|
||||
} else if (!strcmp(cmd, "pcsr")) {
|
||||
rockchip_debug_dump_pcsr(&state->output);
|
||||
#endif
|
||||
} else if (!strcmp(cmd, "version")) {
|
||||
fiq_debugger_printf(&state->output, "%s\n", linux_banner);
|
||||
} else if (!strcmp(cmd, "sleep")) {
|
||||
|
||||
Reference in New Issue
Block a user