mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-18 11:21:11 +00:00
setup: Change fault handler wording
This commit is contained in:
parent
00c4b8e1e8
commit
f0255661ed
12
setup.c
12
setup.c
@ -29,18 +29,20 @@
|
|||||||
|
|
||||||
uint32_t __stack_chk_guard;
|
uint32_t __stack_chk_guard;
|
||||||
|
|
||||||
void __attribute__((noreturn)) __stack_chk_fail(void)
|
static inline void __attribute__((noreturn)) fault_handler(const char *line1) {
|
||||||
{
|
layoutDialog(&bmp_icon_error, NULL, NULL, NULL, line1, "detected.", NULL, "Unplug your TREZOR", "contact our support.", NULL);
|
||||||
layoutDialog(&bmp_icon_error, NULL, NULL, NULL, "Stack smashing", "detected.", NULL, "Please unplug", "the device.", NULL);
|
|
||||||
for (;;) {} // loop forever
|
for (;;) {} // loop forever
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void __attribute__((noreturn)) __stack_chk_fail(void) {
|
||||||
|
fault_handler("Stack smashing");
|
||||||
|
}
|
||||||
|
|
||||||
void nmi_handler(void)
|
void nmi_handler(void)
|
||||||
{
|
{
|
||||||
// Clock Security System triggered NMI
|
// Clock Security System triggered NMI
|
||||||
if ((RCC_CIR & RCC_CIR_CSSF) != 0) {
|
if ((RCC_CIR & RCC_CIR_CSSF) != 0) {
|
||||||
layoutDialog(&bmp_icon_error, NULL, NULL, NULL, "Clock instability", "detected.", NULL, "Please unplug", "the device.", NULL);
|
fault_handler("Clock instability");
|
||||||
for (;;) {} // loop forever
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user