mirror of
https://github.com/Dasharo/zephyr.git
synced 2026-03-06 14:57:20 -08:00
arc: interrupt_controller: increase irq unit priority
arc_v2_irq_unit_init function will init all interrupts and disable they, we must make sure we call it first before we use interrupts. so we need to increase its priority to highest in PRE_KERNEL_1 stage. Signed-off-by: Watson Zeng <zhiwei@synopsys.com>
This commit is contained in:
@@ -218,9 +218,7 @@ static int arc_v2_irq_unit_device_ctrl(const struct device *dev,
|
||||
}
|
||||
|
||||
SYS_DEVICE_DEFINE("arc_v2_irq_unit", arc_v2_irq_unit_init,
|
||||
arc_v2_irq_unit_device_ctrl, PRE_KERNEL_1,
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
|
||||
arc_v2_irq_unit_device_ctrl, PRE_KERNEL_1, 0);
|
||||
#else
|
||||
SYS_INIT(arc_v2_irq_unit_init, PRE_KERNEL_1,
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
|
||||
SYS_INIT(arc_v2_irq_unit_init, PRE_KERNEL_1, 0);
|
||||
#endif /* CONFIG_PM_DEVICE */
|
||||
|
||||
Reference in New Issue
Block a user