diff options
author | Paul Mundt <lethal@linux-sh.org> | 2008-12-17 06:56:06 (GMT) |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2008-12-22 09:44:47 (GMT) |
commit | 5d2685d0b3edc51ecc92604d5b7f5ca9b29b90bb (patch) | |
tree | 389a38e95a74306e94c7bffc1b05635ff08db754 /arch/sh/include/asm | |
parent | fe58cac35f48a9598c2a1360c2204c73f7bca2d2 (diff) | |
download | linux-fsl-qoriq-5d2685d0b3edc51ecc92604d5b7f5ca9b29b90bb.tar.xz |
sh: Conditionalize the code dumper on CONFIG_DUMP_CODE.
We don't really want this enabled by default, but it is still quite
useful for debugging. So, make it conditional and leave it off by
default.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/include/asm')
-rw-r--r-- | arch/sh/include/asm/processor_32.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/sh/include/asm/processor_32.h b/arch/sh/include/asm/processor_32.h index 2bfb735..d79063c 100644 --- a/arch/sh/include/asm/processor_32.h +++ b/arch/sh/include/asm/processor_32.h @@ -175,7 +175,15 @@ static __inline__ void enable_fpu(void) void show_trace(struct task_struct *tsk, unsigned long *sp, struct pt_regs *regs); + +#ifdef CONFIG_DUMP_CODE void show_code(struct pt_regs *regs); +#else +static inline void show_code(struct pt_regs *regs) +{ +} +#endif + extern unsigned long get_wchan(struct task_struct *p); #define KSTK_EIP(tsk) (task_pt_regs(tsk)->pc) |