Commit 6f02b693 authored by Anup Patel's avatar Anup Patel Committed by Anup Patel
Browse files

lib: Introduce bitmap to track HARTs waiting for coldboot



On QEMU Virt, max supported HARTs are 8 but number of HARTs
actually depend on "-smp" command-line parameter passed to
QEMU. This creates problems in sbi_hart_wake_coldboot_harts()
because when number of HARTs are less than 8.

To tackle this, we introduce a bitmap to track HARTs waiting
for coldboot to finish. We wake only those HARTs who have
set their bit in coldboot bitmap.

Signed-off-by: default avatarAnup Patel <anup.patel@wdc.com>
parent b023176c
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment