Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
firmware: fw_base.S: fix multi-core boot bug.
In a multi-core startup scenario, if both _try_lottery and _wait_for_boot_hart use the data in the _boot_status address, when a CPU enters OpenSBI later than boot hart set the _boot_status to BOOT_STATUS_BOOT_HART_DONE, the CPU will modify _boot_status to 1 by amoswap.w and will never be awakened in _wait_for_boot_hart. So let _try_lottery and _boot_status use data from two addresses. Signed-off-by: dong.yang <[email protected]>
- Loading branch information