Skip to content
Snippets Groups Projects
Commit c93a1c81 authored by Lukas Auer's avatar Lukas Auer Committed by Andes
Browse files

riscv: hang on unhandled exceptions


Hang on unhandled exceptions to prevent execution in a faulty state.

Signed-off-by: default avatarLukas Auer <lukas.auer@aisec.fraunhofer.de>
Reviewed-by: default avatarBin Meng <bmeng.cn@gmail.com>
Reviewed-by: default avatarRick Chen <rick@andestech.com>
parent e8b522b1
No related branches found
No related tags found
No related merge requests found
...@@ -87,4 +87,6 @@ static void _exit_trap(ulong code, ulong epc, struct pt_regs *regs) ...@@ -87,4 +87,6 @@ static void _exit_trap(ulong code, ulong epc, struct pt_regs *regs)
} else { } else {
printf("Reserved\n"); printf("Reserved\n");
} }
hang();
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment