diff options
author | Paul Mundt <lethal@linux-sh.org> | 2008-11-26 14:31:03 +0900 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2008-12-22 18:43:49 +0900 |
commit | 9cfc9a9b6fff9ea7a19814b4472b3cb18b7bbdcc (patch) | |
tree | 77642d2de899df449e70fb4e830ee02e738ca4e2 /arch/sh/kernel/process_32.c | |
parent | edfd6da0405520b147ab1473ad183a5b32be7082 (diff) | |
download | op-kernel-dev-9cfc9a9b6fff9ea7a19814b4472b3cb18b7bbdcc.zip op-kernel-dev-9cfc9a9b6fff9ea7a19814b4472b3cb18b7bbdcc.tar.gz |
sh: Add a simple code dumper for SUPERH32 show_regs().
This implements a simple show_code() that is in turn plugged in to
show_regs() to provide minimal code dumping at the end of the trace.
Built on top of a simple instruction disassembler derived from the
binutils opcode table.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/kernel/process_32.c')
-rw-r--r-- | arch/sh/kernel/process_32.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/sh/kernel/process_32.c b/arch/sh/kernel/process_32.c index b965f02..57de3f1 100644 --- a/arch/sh/kernel/process_32.c +++ b/arch/sh/kernel/process_32.c @@ -148,6 +148,7 @@ void show_regs(struct pt_regs * regs) regs->mach, regs->macl, regs->gbr, regs->pr); show_trace(NULL, (unsigned long *)regs->regs[15], regs); + show_code(regs); } /* |