summaryrefslogtreecommitdiffstats
path: root/arch/blackfin/cpu/cpu.h
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2010-04-29 00:31:36 -0400
committerMike Frysinger <vapier@gentoo.org>2010-07-05 04:18:18 -0400
commit66a4909a3d4d684f7a102f4d4d2ba8ae8c66d786 (patch)
tree1a585944dd5c648748d82b5883f90552a2493ae8 /arch/blackfin/cpu/cpu.h
parent54841ab50c20d6fa6c9cc3eb826989da3a22d934 (diff)
downloadtalos-obmc-uboot-66a4909a3d4d684f7a102f4d4d2ba8ae8c66d786.tar.gz
talos-obmc-uboot-66a4909a3d4d684f7a102f4d4d2ba8ae8c66d786.zip
Blackfin: clean up trace buffer handling when crashing
Avoid banging on the trace MMRs when debugging is disabled, avoid calling the funcs multiple times in a row, disable the trace buffer earlier in the exception handler to avoid eating more user entries, and dump the buffer before calling the kgdb hook. This way we maximize useful debugging info up front rather than needing external tools (like gdb/serial/etc...). Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch/blackfin/cpu/cpu.h')
-rw-r--r--arch/blackfin/cpu/cpu.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/blackfin/cpu/cpu.h b/arch/blackfin/cpu/cpu.h
index 0a13c285e0..c8bec115a1 100644
--- a/arch/blackfin/cpu/cpu.h
+++ b/arch/blackfin/cpu/cpu.h
@@ -29,6 +29,7 @@
void board_reset(void) __attribute__((__weak__));
void bfin_reset_or_hang(void) __attribute__((__noreturn__));
+void bfin_dump(struct pt_regs *reg);
void bfin_panic(struct pt_regs *reg);
void dump(struct pt_regs *regs);
OpenPOWER on IntegriCloud