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:
parent
19da4ee379
commit
2c277077fe
1 changed files with 3 additions and 0 deletions
|
@ -37,7 +37,10 @@ SECTION_FUNC(TEXT, __initialize)
|
||||||
*/
|
*/
|
||||||
csrr a0, mhartid
|
csrr a0, mhartid
|
||||||
beqz a0, boot_master_core
|
beqz a0, boot_master_core
|
||||||
|
|
||||||
|
loop_slave_core:
|
||||||
wfi
|
wfi
|
||||||
|
j loop_slave_core
|
||||||
|
|
||||||
boot_master_core:
|
boot_master_core:
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue