summaryrefslogtreecommitdiff
path: root/arch/blackfin/kernel/traps.c
diff options
context:
space:
mode:
authorRobin Getz <robin.getz@analog.com>2010-03-28 12:50:53 +0000
committerMike Frysinger <vapier@gentoo.org>2010-05-22 14:19:05 -0400
commitdc89d97fc73176c883b32ff21ae6f1164ca20d05 (patch)
treebf96980105a75e89ebc0a61bf008e41434c2f819 /arch/blackfin/kernel/traps.c
parent6a4110c2b38da51b767e389a6fb477072cf5843c (diff)
Blackfin: add support for the DBG (debug output) pseudo insn
Another pseudo insn used by Blackfin simulators. Also factor some now common register lookup code out of the DBGA handlers. Signed-off-by: Robin Getz <robin.getz@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch/blackfin/kernel/traps.c')
-rw-r--r--arch/blackfin/kernel/traps.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/blackfin/kernel/traps.c b/arch/blackfin/kernel/traps.c
index 9369836365bb..59c1df75e4de 100644
--- a/arch/blackfin/kernel/traps.c
+++ b/arch/blackfin/kernel/traps.c
@@ -213,6 +213,8 @@ asmlinkage notrace void trap_c(struct pt_regs *fp)
if (!kernel_mode_regs(fp) && get_instruction(&opcode, (unsigned short *)fp->pc)) {
if (execute_pseudodbg_assert(fp, opcode))
goto traps_done;
+ if (execute_pseudodbg(fp, opcode))
+ goto traps_done;
}
#endif
info.si_code = ILL_ILLOPC;