Skip to content

Commit

Permalink
[Blackfin] arch: Don't oops_in_progress if single step is comming fro…
Browse files Browse the repository at this point in the history
…m the kernel

Don't oops_in_progress if single step is comming from the
kernel, which happens if a single step occurs after a exception cause.
This fixes up the remaining issues in the toolchain bug.

Signed-off-by: Robin Getz <robin.getz@analog.com>
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
  • Loading branch information
Robin Getz authored and Bryan Wu committed Jan 10, 2008
1 parent a546b0a commit 6b5eace
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/blackfin/kernel/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,9 @@ asmlinkage void trap_c(struct pt_regs *fp)
/* TODO: check to see if we are in some sort of deferred HWERR
* that we should be able to recover from, not kernel panic
*/
if ((bfin_read_IPEND() & 0xFFC0)
if ((bfin_read_IPEND() & 0xFFC0) && (trapnr != VEC_STEP)
#ifdef CONFIG_KGDB
&& trapnr != VEC_EXCPT02
&& (trapnr != VEC_EXCPT02)
#endif
){
console_verbose();
Expand Down

0 comments on commit 6b5eace

Please sign in to comment.