int: Set default ARC interrupts to lowest priority to start
The code was setting the interrupt priority to 1 for each vector to start. But I think it might be more appropriate to set it to the LOWEST priority. Some ARCs will have upwards to 15 priorities. Change-Id: I9330ec8df323fe04ba0751faaafa39694f012364 Signed-off-by: Chuck Jordan <cjordan@synopsys.com>
This commit is contained in:
parent
a96e8bb615
commit
db6adc6d2e
1 changed files with 2 additions and 1 deletions
|
@ -49,7 +49,8 @@ void _arc_v2_irq_unit_init(void)
|
|||
|
||||
for (irq = 16; irq < CONFIG_NUM_IRQS; irq++) {
|
||||
_arc_v2_aux_reg_write(_ARC_V2_IRQ_SELECT, irq);
|
||||
_arc_v2_aux_reg_write(_ARC_V2_IRQ_PRIORITY, 1);
|
||||
_arc_v2_aux_reg_write(_ARC_V2_IRQ_PRIORITY,
|
||||
(CONFIG_NUM_IRQ_PRIO_LEVELS-1)); /* lowest priority */
|
||||
_arc_v2_aux_reg_write(_ARC_V2_IRQ_ENABLE, _ARC_V2_INT_DISABLE);
|
||||
_arc_v2_aux_reg_write(_ARC_V2_IRQ_TRIGGER, _ARC_V2_INT_LEVEL);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue