From: Lukas Auer Date: Thu, 22 Nov 2018 10:26:22 +0000 (+0100) Subject: riscv: hang on unhandled exceptions X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=c93a1c8185e64b9571df9f7fe2c33f26cd3c41d7;p=u-boot.git riscv: hang on unhandled exceptions Hang on unhandled exceptions to prevent execution in a faulty state. Signed-off-by: Lukas Auer Reviewed-by: Bin Meng Reviewed-by: Rick Chen --- diff --git a/arch/riscv/lib/interrupts.c b/arch/riscv/lib/interrupts.c index d0d8de500e..903a1c4cd5 100644 --- a/arch/riscv/lib/interrupts.c +++ b/arch/riscv/lib/interrupts.c @@ -87,4 +87,6 @@ static void _exit_trap(ulong code, ulong epc, struct pt_regs *regs) } else { printf("Reserved\n"); } + + hang(); }