Skip to content

Commit 57744b8

Browse files
authored
Merge pull request #453 from tlauda/topic/smp-waiti-fix
cpu: fix panic at core power down
2 parents af2c4d5 + 62de7e9 commit 57744b8

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/arch/xtensa/smp/cpu.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,10 @@ void cpu_power_down_core(void)
114114
/* free entire sys heap, an instance dedicated for this core */
115115
free_heap(RZONE_SYS);
116116

117+
/* arch_wait_for_interrupt() not used, because it will cause panic.
118+
* This code is executed on irq lvl > 0, which is expected.
119+
* Core will be put into reset by host anyway.
120+
*/
117121
while (1)
118-
arch_wait_for_interrupt(0);
122+
asm volatile("waiti 0");
119123
}

0 commit comments

Comments
 (0)