From 076b476cf5a327d72626e28f4c655d02161e9aa6 Mon Sep 17 00:00:00 2001 From: cepetr Date: Fri, 21 Jun 2024 10:37:20 +0200 Subject: [PATCH] fix(core/embed): fix memory clearing in u5 boardloader [no changelog] --- core/embed/trezorhal/stm32u5/limited_util.s | 1 + 1 file changed, 1 insertion(+) diff --git a/core/embed/trezorhal/stm32u5/limited_util.s b/core/embed/trezorhal/stm32u5/limited_util.s index b5dc918aee..48d31212a4 100644 --- a/core/embed/trezorhal/stm32u5/limited_util.s +++ b/core/embed/trezorhal/stm32u5/limited_util.s @@ -34,6 +34,7 @@ jump_to: // "there is no requirement to insert memory barrier instructions after CPSID". cpsid f // wipe memory at the end of the current stage of code + ldr r2, =0 // r2 - the word-sized value to be written ldr r0, =sram1_start // r0 - point to beginning of SRAM ldr r1, =sram1_end // r1 - point to byte after the end of SRAM bl memset_reg