]> git.ipfire.org Git - people/ms/u-boot.git/commit - arch/blackfin/cpu/cpu.h
Blackfin: clean up trace buffer handling when crashing
authorMike Frysinger <vapier@gentoo.org>
Thu, 29 Apr 2010 04:31:36 +0000 (00:31 -0400)
committerMike Frysinger <vapier@gentoo.org>
Mon, 5 Jul 2010 08:18:18 +0000 (04:18 -0400)
commit66a4909a3d4d684f7a102f4d4d2ba8ae8c66d786
tree1a585944dd5c648748d82b5883f90552a2493ae8
parent54841ab50c20d6fa6c9cc3eb826989da3a22d934
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>
arch/blackfin/cpu/cpu.h
arch/blackfin/cpu/traps.c