arch: arc: clear ici interrupt during init
clear the ici interrupts during init Signed-off-by: Wayne Ren <wei.ren@synopsys.com>
This commit is contained in:
parent
2b3c9905fe
commit
1e80f25cd1
1 changed files with 2 additions and 0 deletions
|
@ -75,6 +75,7 @@ void z_arc_slave_start(int cpu_num)
|
||||||
z_icache_setup();
|
z_icache_setup();
|
||||||
z_irq_setup();
|
z_irq_setup();
|
||||||
|
|
||||||
|
z_arc_connect_ici_clear();
|
||||||
z_irq_priority_set(IRQ_ICI, ARCV2_ICI_IRQ_PRIORITY, 0);
|
z_irq_priority_set(IRQ_ICI, ARCV2_ICI_IRQ_PRIORITY, 0);
|
||||||
irq_enable(IRQ_ICI);
|
irq_enable(IRQ_ICI);
|
||||||
#endif
|
#endif
|
||||||
|
@ -153,6 +154,7 @@ static int arc_smp_init(struct device *dev)
|
||||||
|
|
||||||
if (bcr.ipi) {
|
if (bcr.ipi) {
|
||||||
/* register ici interrupt, just need master core to register once */
|
/* register ici interrupt, just need master core to register once */
|
||||||
|
z_arc_connect_ici_clear();
|
||||||
IRQ_CONNECT(IRQ_ICI, ARCV2_ICI_IRQ_PRIORITY,
|
IRQ_CONNECT(IRQ_ICI, ARCV2_ICI_IRQ_PRIORITY,
|
||||||
sched_ipi_handler, NULL, 0);
|
sched_ipi_handler, NULL, 0);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue