Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=d8f66c8c1ea8e948483ee4739ad91120f5f7de51
Commit:     d8f66c8c1ea8e948483ee4739ad91120f5f7de51
Parent:     13fe24f37df20e580a5a364e67ec8cf3219d8f8c
Author:     Robin Getz <[EMAIL PROTECTED]>
AuthorDate: Mon Dec 24 15:27:56 2007 +0800
Committer:  Bryan Wu <[EMAIL PROTECTED]>
CommitDate: Mon Dec 24 15:27:56 2007 +0800

    [Blackfin] arch: fix bug gdb testing on hardware has regression
    
    
http://blackfin.uclinux.org/gf/project/toolchain/tracker/?action=TrackerItemEdit&tracker_item_id=3651
    
    As Bernd predicted, this was only necessary because of other
    problems in the kenel - fixing those, and this is not necessary, so
    remove it.
    
    Signed-off-by: Robin Getz <[EMAIL PROTECTED]>
    Signed-off-by: Bryan Wu <[EMAIL PROTECTED]>
---
 arch/blackfin/kernel/traps.c |   37 ++++++++++++++++++++++++++++++-------
 1 files changed, 30 insertions(+), 7 deletions(-)

diff --git a/arch/blackfin/kernel/traps.c b/arch/blackfin/kernel/traps.c
index 4be5ff0..8bbfef3 100644
--- a/arch/blackfin/kernel/traps.c
+++ b/arch/blackfin/kernel/traps.c
@@ -36,6 +36,7 @@
 #include <asm/cacheflush.h>
 #include <asm/blackfin.h>
 #include <asm/irq_handler.h>
+#include <linux/irq.h>
 #include <asm/trace.h>
 #include <asm/fixed_code.h>
 
@@ -508,13 +509,6 @@ asmlinkage void trap_c(struct pt_regs *fp)
        info.si_addr = (void *)fp->pc;
        force_sig_info(sig, &info, current);
 
-       /* Ensure that bad return addresses don't end up in an infinite
-        * loop, due to speculative loads/reads. This needs to be done after
-        * the signal has been sent.
-        */
-       if (trapnr == VEC_CPLB_I_M && sig != SIGTRAP)
-               fp->pc = SAFE_USER_INSTRUCTION;
-
        trace_buffer_restore(j);
        return;
 }
@@ -727,6 +721,9 @@ void dump_bfin_mem(void *retaddr)
 void show_regs(struct pt_regs *fp)
 {
        char buf [150];
+       struct irqaction *action;
+       unsigned int i;
+       unsigned long flags;
 
        printk(KERN_NOTICE "\n" KERN_NOTICE "SEQUENCER STATUS:\n");
        printk(KERN_NOTICE " SEQSTAT: %08lx  IPEND: %04lx  SYSCFG: %04lx\n",
@@ -735,6 +732,32 @@ void show_regs(struct pt_regs *fp)
                (fp->seqstat & SEQSTAT_HWERRCAUSE) >> 14);
        printk(KERN_NOTICE "  EXCAUSE   : 0x%lx\n",
                fp->seqstat & SEQSTAT_EXCAUSE);
+       for (i = 6; i <= 15 ; i++) {
+               if (fp->ipend & (1 << i)) {
+                       decode_address(buf, bfin_read32(EVT0 + 4*i));
+                       printk(KERN_NOTICE "  physical IVG%i asserted : %s\n", 
i, buf);
+               }
+       }
+
+       /* if no interrupts are going off, don't print this out */
+       if (fp->ipend & ~0x3F) {
+               for (i = 0; i < (NR_IRQS - 1); i++) {
+                       spin_lock_irqsave(&irq_desc[i].lock, flags);
+                       action = irq_desc[i].action;
+                       if (!action)
+                               goto unlock;
+
+                       decode_address(buf, (unsigned int)action->handler);
+                       printk(KERN_NOTICE "  logical irq %3d mapped  : %s", i, 
buf);
+                       for (action = action->next; action; action = 
action->next) {
+                               decode_address(buf, (unsigned 
int)action->handler);
+                               printk(", %s", buf);
+                       }
+                       printk("\n");
+unlock:
+                       spin_unlock_irqrestore(&irq_desc[i].lock, flags);
+               }
+       }
 
        decode_address(buf, fp->rete);
        printk(KERN_NOTICE " RETE: %s\n", buf);
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to