diff options
author | Lukas Auer | 2018-11-22 11:26:22 +0100 |
---|---|---|
committer | Andes | 2018-11-26 13:57:30 +0800 |
commit | c93a1c8185e64b9571df9f7fe2c33f26cd3c41d7 (patch) | |
tree | a32e1b5dd3e7e4a02cb1353bd80bad36093d0651 /arch/riscv | |
parent | e8b522b1df8b5874e08b53f6e5aef8a2c458446b (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')
-rw-r--r-- | arch/riscv/lib/interrupts.c | 2 |
1 files changed, 2 insertions, 0 deletions
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(); } |