mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-06-07 17:46:15 +00:00
Revert "Refine the BSP/AP boot flowchart to match BIOS boot flow"
This reverts commit ff9d667b49.
This commit is contained in:
@@ -232,12 +232,11 @@ void init_pcpu_post(uint16_t pcpu_id)
|
||||
ptdev_init();
|
||||
|
||||
/* Start all secondary cores */
|
||||
#if 0
|
||||
startup_paddr = prepare_trampoline();
|
||||
if (!start_pcpus(AP_MASK)) {
|
||||
panic("Failed to start all secondary cores!");
|
||||
}
|
||||
#endif
|
||||
|
||||
ASSERT(get_pcpu_id() == BOOT_CPU_ID, "");
|
||||
} else {
|
||||
pr_dbg("Core %hu is up", pcpu_id);
|
||||
@@ -314,14 +313,6 @@ bool start_pcpus(uint64_t mask)
|
||||
uint16_t pcpu_id = get_pcpu_id();
|
||||
uint64_t expected_start_mask = mask;
|
||||
|
||||
if ((pcpu_active_bitmap & mask) == mask)
|
||||
return 1;
|
||||
|
||||
#if 1
|
||||
if (startup_paddr == 0)
|
||||
startup_paddr = prepare_trampoline();
|
||||
#endif
|
||||
|
||||
/* secondary cpu start up will wait for pcpu_sync -> 0UL */
|
||||
atomic_store64(&pcpu_sync, 1UL);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user