aboutsummaryrefslogtreecommitdiff
path: root/arch/riscv
diff options
context:
space:
mode:
authorLukas Auer <lukas.auer@aisec.fraunhofer.de>2019-01-04 01:37:28 +0100
committerAndes <uboot@andestech.com>2019-01-15 09:36:31 +0800
commit0c85c113c41c1393e10939629aabfb26279c4294 (patch)
treefed37903ef7834d2062f5343cf86530e0cf63c7c /arch/riscv
parentd3689267f92c5956e09cc7d1baa4700141662bff (diff)
downloadu-boot-0c85c113c41c1393e10939629aabfb26279c4294.zip
u-boot-0c85c113c41c1393e10939629aabfb26279c4294.tar.gz
u-boot-0c85c113c41c1393e10939629aabfb26279c4294.tar.bz2
riscv: clarify error message on undefined exceptions
Undefined exceptions are treated as reserved. This is not clearly communicated to the user. Adjust the error message to clarify that a reserved exception has occurred and add additional details. Fixes: e8b522b ("riscv: treat undefined exception codes as reserved") Signed-off-by: Lukas Auer <lukas.auer@aisec.fraunhofer.de> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'arch/riscv')
-rw-r--r--arch/riscv/lib/interrupts.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/riscv/lib/interrupts.c b/arch/riscv/lib/interrupts.c
index e185933..74c1e56 100644
--- a/arch/riscv/lib/interrupts.c
+++ b/arch/riscv/lib/interrupts.c
@@ -37,7 +37,8 @@ static void _exit_trap(ulong code, ulong epc, struct pt_regs *regs)
printf("exception code: %ld , %s , epc %lx , ra %lx\n",
code, exception_code[code], epc, regs->ra);
} else {
- printf("Reserved\n");
+ printf("reserved exception code: %ld , epc %lx , ra %lx\n",
+ code, epc, regs->ra);
}
hang();