From: Lukas Auer Date: Thu, 22 Nov 2018 10:26:22 +0000 (+0100) Subject: riscv: hang on unhandled exceptions X-Git-Tag: v2019.01-rc1~26^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c93a1c8185e64b9571df9f7fe2c33f26cd3c41d7;p=pandora-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 d0d8de500ee..903a1c4cd55 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(); }