mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
[PATCH] m68k: separate handler for auto and user vector interrupt
Use separate entry points for auto and user vector interrupts and cleanup naming a little. Signed-off-by: Roman Zippel <zippel@linux-m68k.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
f2325ecebc
commit
92445eaaad
5 changed files with 71 additions and 108 deletions
|
@ -248,19 +248,16 @@ static void dummy_free_irq(unsigned int irq, void *dev_id)
|
|||
printk("calling uninitialized disable_irq()\n");
|
||||
}
|
||||
|
||||
asmlinkage void process_int(unsigned long vec, struct pt_regs *fp)
|
||||
asmlinkage void m68k_handle_int(unsigned int irq, struct pt_regs *regs)
|
||||
{
|
||||
if (vec >= VEC_INT1 && vec <= VEC_INT7 && !MACH_IS_BVME6000) {
|
||||
vec -= VEC_SPUR;
|
||||
kstat_cpu(0).irqs[vec]++;
|
||||
irq_list[vec].handler(vec, irq_list[vec].dev_id, fp);
|
||||
} else {
|
||||
if (mach_process_int)
|
||||
mach_process_int(vec, fp);
|
||||
else
|
||||
panic("Can't process interrupt vector %ld\n", vec);
|
||||
return;
|
||||
}
|
||||
kstat_cpu(0).irqs[irq]++;
|
||||
irq_list[irq].handler(irq, irq_list[irq].dev_id, regs);
|
||||
}
|
||||
|
||||
asmlinkage void handle_badint(struct pt_regs *regs)
|
||||
{
|
||||
kstat_cpu(0).irqs[0]++;
|
||||
printk("unexpected interrupt from %u\n", regs->vector);
|
||||
}
|
||||
|
||||
int show_interrupts(struct seq_file *p, void *v)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue