Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

qemu: fix smp boot not enter idle #13487

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 3 additions & 8 deletions arch/arm/src/qemu/qemu_cpuboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
#include <nuttx/sched.h>
#include <arch/irq.h>

#include "init/init.h"
#include "arm_internal.h"
#include "sctlr.h"
#include "smp.h"
Expand Down Expand Up @@ -159,14 +160,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 */
Loading