]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
Blackfin arch: Make sure we protect except 2 properly, and print out memory properly
authorRobin Getz <rgetz@blackfin.uclinux.org>
Wed, 8 Oct 2008 08:29:01 +0000 (16:29 +0800)
committerBryan Wu <cooloney@kernel.org>
Wed, 8 Oct 2008 08:29:01 +0000 (16:29 +0800)
Signed-off-by: Robin Getz <rgetz@blackfin.uclinux.org>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
arch/blackfin/kernel/traps.c

index be5ae7fabc5f02f4c01479dc0271069313cd9972..0112ba407f63f27a7aa4367c5b19fca6c4aa629f 100644 (file)
@@ -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;
@@ -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