summaryrefslogtreecommitdiff
path: root/src/arch/riscv/Kconfig
diff options
context:
space:
mode:
authorPhilipp Hug <philipp@hug.cx>2018-12-01 18:17:18 +0100
committerPatrick Georgi <pgeorgi@google.com>2018-12-07 11:37:53 +0000
commit968a23d2e0afcf3ead23d3075aecc5c6e27211e4 (patch)
tree224538a6d842bd87f15ea167c5b75b9a555a8570 /src/arch/riscv/Kconfig
parent6ee37ef59ddf5e7f005e0aa24541b190384ab87c (diff)
downloadcoreboot-968a23d2e0afcf3ead23d3075aecc5c6e27211e4.tar.xz
riscv: fix non-SMP support
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 <philipp@hug.cx> Reviewed-on: https://review.coreboot.org/c/29993 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Xiang Wang <wxjstz@126.com> Reviewed-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
Diffstat (limited to 'src/arch/riscv/Kconfig')
-rw-r--r--src/arch/riscv/Kconfig3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/arch/riscv/Kconfig b/src/arch/riscv/Kconfig
index ae83be855b..9fa43bc9f2 100644
--- a/src/arch/riscv/Kconfig
+++ b/src/arch/riscv/Kconfig
@@ -33,8 +33,5 @@ config RISCV_USE_ARCH_TIMER
bool
default n
-config RISCV_HART_NUM
- int
-
config RISCV_WORKING_HARTID
int