arch: riscv: Use infinite loop instead of simple wfi to halt slave core

If it's a multicore system, infinite loop wfi to halt slave core

Signed-off-by: Huang Qi <757509347@qq.com>
This commit is contained in:
Huang Qi 2019-09-13 00:06:00 +00:00 committed by Anas Nashif
commit 2c277077fe

View file

@ -37,7 +37,10 @@ SECTION_FUNC(TEXT, __initialize)
*/
csrr a0, mhartid
beqz a0, boot_master_core
loop_slave_core:
wfi
j loop_slave_core
boot_master_core: