From d0b705e19c5855b75527515d6717879fc9997876 Mon Sep 17 00:00:00 2001 From: "xiaoguang.xing" Date: Sat, 10 Jun 2023 10:49:27 +0800 Subject: [PATCH] platform:generic:sophgo: Allow the harts of chip0 as cold boot hart --- platform/generic/sophgo/mango.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/generic/sophgo/mango.c b/platform/generic/sophgo/mango.c index e1c64b22..faeb6fac 100644 --- a/platform/generic/sophgo/mango.c +++ b/platform/generic/sophgo/mango.c @@ -32,7 +32,7 @@ static bool mango_cold_boot_allowed(u32 hartid, if (selected_hartid != -1) return (selected_hartid == hartid); - return true; + return (hartid < 64); } int mango_early_init(bool cold_boot, const struct fdt_match *match)