mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-25 06:00:43 +00:00
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>
This commit is contained in:
parent
e8b522b1df
commit
c93a1c8185
1 changed files with 2 additions and 0 deletions
|
@ -87,4 +87,6 @@ static void _exit_trap(ulong code, ulong epc, struct pt_regs *regs)
|
|||
} else {
|
||||
printf("Reserved\n");
|
||||
}
|
||||
|
||||
hang();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue