lib: sbi: Extend sbi_trap_error() to dump state in a nested trap
authorAnup Patel <apatel@ventanamicro.com>
Tue, 12 Mar 2024 08:22:53 +0000 (13:52 +0530)
committerAnup Patel <anup@brainfault.org>
Tue, 19 Mar 2024 06:01:41 +0000 (11:31 +0530)
commitf7d00507552e9edac13f740f48479c2172849a4f
treeeae01ad0eb6172876384b20e87f2a923a92b57dd
parent5b11f16c3c65feb065ba6a703d69a3c56ccca688
lib: sbi: Extend sbi_trap_error() to dump state in a nested trap

The sbi_trap_error() should dump state of all in-flight traps upon
failure in a nested trap so extend it accordingly.

Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Tested-by: Samuel Holland <samuel.holland@sifive.com>
lib/sbi/sbi_trap.c