diff options
Diffstat (limited to 'arch/arm/plat-mxc/avic.c')
-rw-r--r-- | arch/arm/plat-mxc/avic.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/arm/plat-mxc/avic.c b/arch/arm/plat-mxc/avic.c index 55d2534ec727..4d68c5a6faca 100644 --- a/arch/arm/plat-mxc/avic.c +++ b/arch/arm/plat-mxc/avic.c | |||
@@ -116,6 +116,19 @@ static struct mxc_irq_chip mxc_avic_chip = { | |||
116 | #endif | 116 | #endif |
117 | }; | 117 | }; |
118 | 118 | ||
119 | asmlinkage void __exception_irq_entry avic_handle_irq(struct pt_regs *regs) | ||
120 | { | ||
121 | u32 nivector; | ||
122 | |||
123 | do { | ||
124 | nivector = __raw_readl(avic_base + AVIC_NIVECSR) >> 16; | ||
125 | if (nivector == 0xffff) | ||
126 | break; | ||
127 | |||
128 | handle_IRQ(nivector, regs); | ||
129 | } while (1); | ||
130 | } | ||
131 | |||
119 | /* | 132 | /* |
120 | * This function initializes the AVIC hardware and disables all the | 133 | * This function initializes the AVIC hardware and disables all the |
121 | * interrupts. It registers the interrupt enable and disable functions | 134 | * interrupts. It registers the interrupt enable and disable functions |