diff options
Diffstat (limited to 'arch/arc/kernel/intc-arcv2.c')
-rw-r--r-- | arch/arc/kernel/intc-arcv2.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arc/kernel/intc-arcv2.c b/arch/arc/kernel/intc-arcv2.c index f928795fd07a..cf90714a676d 100644 --- a/arch/arc/kernel/intc-arcv2.c +++ b/arch/arc/kernel/intc-arcv2.c | |||
@@ -75,10 +75,13 @@ void arc_init_IRQ(void) | |||
75 | * Set a default priority for all available interrupts to prevent | 75 | * Set a default priority for all available interrupts to prevent |
76 | * switching of register banks if Fast IRQ and multiple register banks | 76 | * switching of register banks if Fast IRQ and multiple register banks |
77 | * are supported by CPU. | 77 | * are supported by CPU. |
78 | * Also disable all IRQ lines so faulty external hardware won't | ||
79 | * trigger interrupt that kernel is not ready to handle. | ||
78 | */ | 80 | */ |
79 | for (i = NR_EXCEPTIONS; i < irq_bcr.irqs + NR_EXCEPTIONS; i++) { | 81 | for (i = NR_EXCEPTIONS; i < irq_bcr.irqs + NR_EXCEPTIONS; i++) { |
80 | write_aux_reg(AUX_IRQ_SELECT, i); | 82 | write_aux_reg(AUX_IRQ_SELECT, i); |
81 | write_aux_reg(AUX_IRQ_PRIORITY, ARCV2_IRQ_DEF_PRIO); | 83 | write_aux_reg(AUX_IRQ_PRIORITY, ARCV2_IRQ_DEF_PRIO); |
84 | write_aux_reg(AUX_IRQ_ENABLE, 0); | ||
82 | } | 85 | } |
83 | 86 | ||
84 | /* setup status32, don't enable intr yet as kernel doesn't want */ | 87 | /* setup status32, don't enable intr yet as kernel doesn't want */ |