浏览代码

m68knommu: support code to mask external interrupts on old ColdFire CPU's

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>
Greg Ungerer 16 年之前
父节点
当前提交
f9311f2643
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      arch/m68knommu/platform/coldfire/intc.c

+ 4 - 0
arch/m68knommu/platform/coldfire/intc.c

@@ -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)