Skip to content

Commit

Permalink
Blackfin arch: fix bux - only reset the PC when necessary, otherwise …
Browse files Browse the repository at this point in the history
…gdb gets confused

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 Nov 12, 2007
1 parent f26fbc4 commit 4a589e1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions arch/blackfin/kernel/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ static void decode_address(char *buf, unsigned long address)
}

/* we were unable to find this address anywhere */
sprintf(buf, "[<0x%p>]", (void *)address);
sprintf(buf, "<0x%p> /* unknown address */", (void *)address);

done:
write_unlock_irqrestore(&tasklist_lock, flags);
Expand Down Expand Up @@ -467,7 +467,8 @@ asmlinkage void trap_c(struct pt_regs *fp)
/* Ensure that bad return addresses don't end up in an infinite
* loop, due to speculative loads/reads
*/
fp->pc = SAFE_USER_INSTRUCTION;
if (trapnr == VEC_CPLB_I_M)
fp->pc = SAFE_USER_INSTRUCTION;
}
info.si_signo = sig;
info.si_errno = 0;
Expand Down

0 comments on commit 4a589e1

Please sign in to comment.