1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-18 04:18:10 +00:00

fixup! fix(legacy): make RDI work on T1

This commit is contained in:
Ondřej Vejpustek 2021-06-24 17:12:19 +02:00
parent daa94ac941
commit 24200e7424
2 changed files with 2 additions and 4 deletions

View File

@ -53,6 +53,8 @@
extern void shutdown_privileged(void); extern void shutdown_privileged(void);
int main(void) { int main(void) {
random_delays_init();
#ifdef RDI #ifdef RDI
rdi_start(); rdi_start();
#endif #endif

View File

@ -44,10 +44,6 @@ reset_handler:
ldr r1, = __stack_chk_guard ldr r1, = __stack_chk_guard
str r0, [r1] str r0, [r1]
#ifdef RDI
bl random_delays_init
#endif
// re-enable exceptions // re-enable exceptions
// according to "ARM Cortex-M Programming Guide to Memory Barrier Instructions" Application Note 321, section 4.7: // according to "ARM Cortex-M Programming Guide to Memory Barrier Instructions" Application Note 321, section 4.7:
// "If it is not necessary to ensure that a pended interrupt is recognized immediately before // "If it is not necessary to ensure that a pended interrupt is recognized immediately before