From 968a23d2e0afcf3ead23d3075aecc5c6e27211e4 Mon Sep 17 00:00:00 2001 From: Philipp Hug Date: Sat, 1 Dec 2018 18:17:18 +0100 Subject: riscv: fix non-SMP support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use CONFIG_CPU_MAX which defaults to 1 instead of CONFIG_RISCV_HART_NUM. The default value of CONFIG_RISCV_HART_NUM was 0 and cause a jump to address 0. Add a die() call to fail gracefully. Change-Id: I4e3aa09b787ae0f26a4aae375f4e5fcd745a0a1e Signed-off-by: Philipp Hug Reviewed-on: https://review.coreboot.org/c/29993 Tested-by: build bot (Jenkins) Reviewed-by: Xiang Wang Reviewed-by: Jonathan Neuschäfer --- src/soc/sifive/fu540/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/soc/sifive/fu540') diff --git a/src/soc/sifive/fu540/Kconfig b/src/soc/sifive/fu540/Kconfig index 72305d67a9..795f51b4d6 100644 --- a/src/soc/sifive/fu540/Kconfig +++ b/src/soc/sifive/fu540/Kconfig @@ -39,7 +39,7 @@ config RISCV_CODEMODEL string default "medany" -config RISCV_HART_NUM +config MAX_CPUS int default 5 -- cgit v1.2.3