Skip to content

Commit

Permalink
Blackfin arch: Make sure we protect except 2 properly, and print out …
Browse files Browse the repository at this point in the history
…memory properly

Signed-off-by: Robin Getz <rgetz@blackfin.uclinux.org>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
  • Loading branch information
Robin Getz authored and Bryan Wu committed Oct 8, 2008
1 parent 74c0450 commit 7d98c88
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/blackfin/kernel/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@ asmlinkage void trap_c(struct pt_regs *fp)
* If we got here, it is most likely that someone was trying to use a
* custom exception handler, and it is not actually installed properly
*/
case VEC_EXCPT02:
case VEC_EXCPT04 ... VEC_EXCPT15:
info.si_code = ILL_ILLPARAOP;
sig = SIGILL;
Expand Down Expand Up @@ -968,7 +969,7 @@ void dump_bfin_mem(struct pt_regs *fp)
if (!((unsigned long)addr & 0xF))
printk("\n" KERN_NOTICE "0x%p: ", addr);

if (get_instruction(&val, addr)) {
if (!get_instruction(&val, addr)) {
val = 0;
sprintf(buf, "????");
} else
Expand Down

0 comments on commit 7d98c88

Please sign in to comment.