提交 f9311f26 编写于 作者: G Greg Ungerer

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: NGreg Ungerer <gerg@uclinux.org>
上级 f2154bef
...@@ -103,10 +103,14 @@ void mcf_autovector(int irq) ...@@ -103,10 +103,14 @@ void mcf_autovector(int irq)
static void intc_irq_mask(unsigned 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) 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) static int intc_irq_set_type(unsigned int irq, unsigned int type)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册