Skip to content

Commit

Permalink
m68knommu: support code to mask external interrupts on old ColdFire C…
Browse files Browse the repository at this point in the history
…PU'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>
  • Loading branch information
Greg Ungerer committed Sep 15, 2009
1 parent f2154be commit f9311f2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arch/m68knommu/platform/coldfire/intc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f9311f2

Please sign in to comment.