]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
m68knommu: support code to mask external interrupts on old ColdFire CPU's
authorGreg Ungerer <gerg@uclinux.org>
Tue, 19 May 2009 04:39:19 +0000 (14:39 +1000)
committerGreg Ungerer <gerg@uclinux.org>
Tue, 15 Sep 2009 23:43:51 +0000 (09:43 +1000)
The external interrupts used on the old Coldfire parts with the old style
interrupt controller can be properly mask/unmasked in the interrupt
handling code.

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
arch/m68knommu/platform/coldfire/intc.c

index 88bffac50c677965165da1584cd26e6d3ca4b81b..14db26bf6e2f29e0103704041eec38a5a82108d2 100644 (file)
@@ -103,10 +103,14 @@ void mcf_autovector(int irq)
 
 static void intc_irq_mask(unsigned int irq)
 {
+       if ((irq >= EIRQ1) && (irq <= EIRQ7))
+               mcf_setimr(irq - EIRQ1 + 1);
 }
 
 static void intc_irq_unmask(unsigned int irq)
 {
+       if ((irq >= EIRQ1) && (irq <= EIRQ7))
+               mcf_clrimr(irq - EIRQ1 + 1);
 }
 
 static int intc_irq_set_type(unsigned int irq, unsigned int type)