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 <nuttx/sched.h>
|
||||||
#include <arch/irq.h>
|
#include <arch/irq.h>
|
||||||
|
|
||||||
|
#include "init/init.h"
|
||||||
#include "arm_internal.h"
|
#include "arm_internal.h"
|
||||||
#include "sctlr.h"
|
#include "sctlr.h"
|
||||||
#include "scu.h"
|
#include "scu.h"
|
||||||
@@ -107,14 +108,8 @@ void arm_cpu_boot(int cpu)
|
|||||||
up_irq_enable();
|
up_irq_enable();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* The next thing that we expect to happen is for logic running on CPU0
|
/* Then transfer control to the IDLE task */
|
||||||
* to call up_cpu_start() which generate an SGI and a context switch to
|
|
||||||
* the configured NuttX IDLE task.
|
|
||||||
*/
|
|
||||||
|
|
||||||
for (; ; )
|
nx_idle_trampoline();
|
||||||
{
|
|
||||||
asm("WFI");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
#endif /* CONFIG_SMP */
|
#endif /* CONFIG_SMP */
|
||||||
|
|||||||
Reference in New Issue
Block a user