mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 23:03:27 +08:00
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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user