[PATCH 2/2] riscv: show registers in crash dumps by default

Heinrich Schuchardt heinrich.schuchardt at canonical.com
Sun Aug 11 13:01:04 CEST 2024


If an exception occurs in main U-Boot, show the registers. This makes
analyzing crashes especially in external applications easier.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt at canonical.com>
---
 arch/riscv/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig
index 66cd512b23f..fc79d4902de 100644
--- a/arch/riscv/Kconfig
+++ b/arch/riscv/Kconfig
@@ -437,6 +437,7 @@ config AVAILABLE_HARTS
 	  If disable this, it will send IPI by CPUs node numbers of device tree.
 
 config SHOW_REGS
+	default y
 	bool "Show registers on unhandled exception"
 	help
 	  By default only the program counter and the return address register
-- 
2.45.2



More information about the U-Boot mailing list