Commit 7d98c881 authored by Robin Getz's avatar Robin Getz Committed by Bryan Wu

Blackfin arch: Make sure we protect except 2 properly, and print out memory properly

Signed-off-by: default avatarRobin Getz <rgetz@blackfin.uclinux.org>
Signed-off-by: default avatarBryan Wu <cooloney@kernel.org>
parent 74c04503
...@@ -317,6 +317,7 @@ asmlinkage void trap_c(struct pt_regs *fp) ...@@ -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 * 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 * custom exception handler, and it is not actually installed properly
*/ */
case VEC_EXCPT02:
case VEC_EXCPT04 ... VEC_EXCPT15: case VEC_EXCPT04 ... VEC_EXCPT15:
info.si_code = ILL_ILLPARAOP; info.si_code = ILL_ILLPARAOP;
sig = SIGILL; sig = SIGILL;
...@@ -968,7 +969,7 @@ void dump_bfin_mem(struct pt_regs *fp) ...@@ -968,7 +969,7 @@ void dump_bfin_mem(struct pt_regs *fp)
if (!((unsigned long)addr & 0xF)) if (!((unsigned long)addr & 0xF))
printk("\n" KERN_NOTICE "0x%p: ", addr); printk("\n" KERN_NOTICE "0x%p: ", addr);
if (get_instruction(&val, addr)) { if (!get_instruction(&val, addr)) {
val = 0; val = 0;
sprintf(buf, "????"); sprintf(buf, "????");
} else } else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment