|
@@ -17,6 +17,8 @@
|
|
#include <asm/thread_info.h>
|
|
#include <asm/thread_info.h>
|
|
#include <asm/cpu/mmu_context.h>
|
|
#include <asm/cpu/mmu_context.h>
|
|
|
|
|
|
|
|
+atomic_t irq_err_count;
|
|
|
|
+
|
|
/*
|
|
/*
|
|
* 'what should we do if we get a hw irq event on an illegal vector'.
|
|
* 'what should we do if we get a hw irq event on an illegal vector'.
|
|
* each architecture has to answer this themselves, it doesn't deserve
|
|
* each architecture has to answer this themselves, it doesn't deserve
|
|
@@ -47,8 +49,10 @@ int show_interrupts(struct seq_file *p, void *v)
|
|
if (!action)
|
|
if (!action)
|
|
goto unlock;
|
|
goto unlock;
|
|
seq_printf(p, "%3d: ",i);
|
|
seq_printf(p, "%3d: ",i);
|
|
- seq_printf(p, "%10u ", kstat_irqs(i));
|
|
|
|
- seq_printf(p, " %14s", irq_desc[i].chip->typename);
|
|
|
|
|
|
+ for_each_online_cpu(j)
|
|
|
|
+ seq_printf(p, "%10u ", kstat_cpu(j).irqs[i]);
|
|
|
|
+ seq_printf(p, " %14s", irq_desc[i].chip->name);
|
|
|
|
+ seq_printf(p, "-%s", handle_irq_name(irq_desc[i].handle_irq));
|
|
seq_printf(p, " %s", action->name);
|
|
seq_printf(p, " %s", action->name);
|
|
|
|
|
|
for (action=action->next; action; action = action->next)
|
|
for (action=action->next; action; action = action->next)
|
|
@@ -56,7 +60,9 @@ int show_interrupts(struct seq_file *p, void *v)
|
|
seq_putc(p, '\n');
|
|
seq_putc(p, '\n');
|
|
unlock:
|
|
unlock:
|
|
spin_unlock_irqrestore(&irq_desc[i].lock, flags);
|
|
spin_unlock_irqrestore(&irq_desc[i].lock, flags);
|
|
- }
|
|
|
|
|
|
+ } else if (i == NR_IRQS)
|
|
|
|
+ seq_printf(p, "Err: %10u\n", atomic_read(&irq_err_count));
|
|
|
|
+
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
#endif
|
|
#endif
|
|
@@ -78,6 +84,7 @@ asmlinkage int do_IRQ(unsigned long r4, unsigned long r5,
|
|
unsigned long r6, unsigned long r7,
|
|
unsigned long r6, unsigned long r7,
|
|
struct pt_regs regs)
|
|
struct pt_regs regs)
|
|
{
|
|
{
|
|
|
|
+ struct pt_regs *old_regs = set_irq_regs(®s);
|
|
int irq = r4;
|
|
int irq = r4;
|
|
#ifdef CONFIG_4KSTACKS
|
|
#ifdef CONFIG_4KSTACKS
|
|
union irq_ctx *curctx, *irqctx;
|
|
union irq_ctx *curctx, *irqctx;
|
|
@@ -139,7 +146,6 @@ asmlinkage int do_IRQ(unsigned long r4, unsigned long r5,
|
|
|
|
|
|
__asm__ __volatile__ (
|
|
__asm__ __volatile__ (
|
|
"mov %0, r4 \n"
|
|
"mov %0, r4 \n"
|
|
- "mov %1, r5 \n"
|
|
|
|
"mov r15, r9 \n"
|
|
"mov r15, r9 \n"
|
|
"jsr @%2 \n"
|
|
"jsr @%2 \n"
|
|
/* swith to the irq stack */
|
|
/* swith to the irq stack */
|
|
@@ -147,17 +153,18 @@ asmlinkage int do_IRQ(unsigned long r4, unsigned long r5,
|
|
/* restore the stack (ring zero) */
|
|
/* restore the stack (ring zero) */
|
|
"mov r9, r15 \n"
|
|
"mov r9, r15 \n"
|
|
: /* no outputs */
|
|
: /* no outputs */
|
|
- : "r" (irq), "r" (®s), "r" (__do_IRQ), "r" (isp)
|
|
|
|
|
|
+ : "r" (irq), "r" (generic_handle_irq), "r" (isp)
|
|
/* XXX: A somewhat excessive clobber list? -PFM */
|
|
/* XXX: A somewhat excessive clobber list? -PFM */
|
|
: "memory", "r0", "r1", "r2", "r3", "r4",
|
|
: "memory", "r0", "r1", "r2", "r3", "r4",
|
|
"r5", "r6", "r7", "r8", "t", "pr"
|
|
"r5", "r6", "r7", "r8", "t", "pr"
|
|
);
|
|
);
|
|
} else
|
|
} else
|
|
#endif
|
|
#endif
|
|
- __do_IRQ(irq, ®s);
|
|
|
|
|
|
+ generic_handle_irq(irq);
|
|
|
|
|
|
irq_exit();
|
|
irq_exit();
|
|
|
|
|
|
|
|
+ set_irq_regs(old_regs);
|
|
return 1;
|
|
return 1;
|
|
}
|
|
}
|
|
|
|
|