qemu: fix smp boot not enter idle

Signed-off-by: hujun5 <hujun5@xiaomi.com>
Signed-off-by: ligd <liguiding1@xiaomi.com>
This commit is contained in:
hujun5
2024-06-04 20:47:08 +08:00
committed by Xiang Xiao
parent a952e9ca78
commit 0ed47c5f7e
+3 -8
View File
@@ -31,6 +31,7 @@
#include <nuttx/sched.h>
#include <arch/irq.h>
#include "init/init.h"
#include "arm_internal.h"
#include "sctlr.h"
#include "scu.h"
@@ -107,14 +108,8 @@ void arm_cpu_boot(int cpu)
up_irq_enable();
#endif
/* The next thing that we expect to happen is for logic running on CPU0
* to call up_cpu_start() which generate an SGI and a context switch to
* the configured NuttX IDLE task.
*/
/* Then transfer control to the IDLE task */
for (; ; )
{
asm("WFI");
}
nx_idle_trampoline();
}
#endif /* CONFIG_SMP */