aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/include/asm/processor_32.h
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2008-12-17 15:56:06 +0900
committerPaul Mundt <lethal@linux-sh.org>2008-12-22 18:44:47 +0900
commit5d2685d0b3edc51ecc92604d5b7f5ca9b29b90bb (patch)
tree389a38e95a74306e94c7bffc1b05635ff08db754 /arch/sh/include/asm/processor_32.h
parentsh: Kill off the unused SH_ALPHANUMERIC debug option. (diff)
downloadlinux-dev-5d2685d0b3edc51ecc92604d5b7f5ca9b29b90bb.tar.xz
linux-dev-5d2685d0b3edc51ecc92604d5b7f5ca9b29b90bb.zip
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/processor_32.h')
-rw-r--r--arch/sh/include/asm/processor_32.h8
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 2bfb7353493a..d79063c5eb9c 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)