Skip to content
Commit b47613da authored by Xiang Wang's avatar Xiang Wang Committed by Paul Walmsley
Browse files

arch/riscv: disable excess harts before picking main boot hart



Harts with id greater than or equal to CONFIG_NR_CPUS need to be
disabled.  But the kernel can pick any hart as the main hart.  So,
before picking the main hart, the kernel must disable harts with ids
greater than or equal to CONFIG_NR_CPUS.

Signed-off-by: default avatarXiang Wang <merle@hardenedlinux.org>
Reviewed-by: default avatarPalmer Dabbelt <palmer@sifive.com>
Reviewed-by: default avatarAnup Patel <anup.patel@wdc.com>
[paul.walmsley@sifive.com: updated to apply; cleaned up patch
 description]
Signed-off-by: default avatarPaul Walmsley <paul.walmsley@sifive.com>
parent 1cec0ce2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment