mirror of
https://xff.cz/git/u-boot/
synced 2025-09-03 01:32:47 +02: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:
@@ -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();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user