summaryrefslogtreecommitdiff
path: root/arch/riscv/lib/interrupts.c
diff options
context:
space:
mode:
authorLukas Auer <lukas.auer@aisec.fraunhofer.de>2018-11-22 11:26:22 +0100
committerAndes <uboot@andestech.com>2018-11-26 13:57:30 +0800
commitc93a1c8185e64b9571df9f7fe2c33f26cd3c41d7 (patch)
treea32e1b5dd3e7e4a02cb1353bd80bad36093d0651 /arch/riscv/lib/interrupts.c
parente8b522b1df8b5874e08b53f6e5aef8a2c458446b (diff)
riscv: hang on unhandled exceptions
Hang on unhandled exceptions to prevent execution in a faulty state. Signed-off-by: Lukas Auer <lukas.auer@aisec.fraunhofer.de> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Rick Chen <rick@andestech.com>
Diffstat (limited to 'arch/riscv/lib/interrupts.c')
-rw-r--r--arch/riscv/lib/interrupts.c2
1 files changed, 2 insertions, 0 deletions
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();
}