lib: Print mtval in sbi_trap_error()
authorAnup Patel <anup.patel@wdc.com>
Thu, 27 Dec 2018 04:36:38 +0000 (10:06 +0530)
committerAnup Patel <anup@brainfault.org>
Thu, 27 Dec 2018 04:36:38 +0000 (10:06 +0530)
commitf2d4c5f2915e805e660a533d30cda6edf97b8bcd
treeaec2d21892bcd9ceede8e24be2ea74cb17576d0a
parent45f874da6ccae5294625c9d5b71fafa47299f1d7
lib: Print mtval in sbi_trap_error()

The mtval CSR is very useful information when debugging hence
print it upon trap error in sbi_trap_error().

Signed-off-by: Anup Patel <anup.patel@wdc.com>
lib/sbi_trap.c