Skip to content

Commit

Permalink
CRIS v32: increase NR_IRQS
Browse files Browse the repository at this point in the history
Increase NR_IQRS so we can fit in GPIO interrupts.

Signed-off-by: Rabin Vincent <[email protected]>
Signed-off-by: Jesper Nilsson <[email protected]>
  • Loading branch information
vitkyrka authored and Jesper Nilsson committed Nov 2, 2015
1 parent c33fe44 commit df90c33
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions arch/cris/arch-v32/kernel/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -464,14 +464,14 @@ init_IRQ(void)
etrax_irv->v[i] = weird_irq;

np = of_find_compatible_node(NULL, NULL, "axis,crisv32-intc");
domain = irq_domain_add_legacy(np, NR_IRQS - FIRST_IRQ,
domain = irq_domain_add_legacy(np, NBR_INTR_VECT - FIRST_IRQ,
FIRST_IRQ, FIRST_IRQ,
&crisv32_irq_ops, NULL);
BUG_ON(!domain);
irq_set_default_host(domain);
of_node_put(np);

for (i = FIRST_IRQ, j = 0; j < NR_IRQS; i++, j++) {
for (i = FIRST_IRQ, j = 0; j < NBR_INTR_VECT; i++, j++) {
set_exception_vector(i, interrupt[j]);
}

Expand Down
2 changes: 1 addition & 1 deletion arch/cris/include/arch-v32/arch/irq.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include <hwregs/intr_vect.h>

/* Number of non-cpu interrupts. */
#define NR_IRQS NBR_INTR_VECT /* Exceptions + IRQs */
#define NR_IRQS (NBR_INTR_VECT + 256) /* Exceptions + IRQs */
#define FIRST_IRQ 0x31 /* Exception number for first IRQ */
#define NR_REAL_IRQS (NBR_INTR_VECT - FIRST_IRQ) /* IRQs */
#if NR_REAL_IRQS > 32
Expand Down

0 comments on commit df90c33

Please sign in to comment.