1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-22 22:38:08 +00:00

fix(embed/core): fix stack protection on STM32U5

[no changelog]
This commit is contained in:
cepetr 2024-08-20 08:53:22 +02:00 committed by cepetr
parent 0b93d0d848
commit 5210d2fa50
6 changed files with 6 additions and 6 deletions

View File

@ -7,7 +7,7 @@
reset_handler:
// set the stack protection
ldr r0, =_sstack
add r0, r0, #16 // padding
add r0, r0, #128 // safety margin for the exception frame
msr MSPLIM, r0
bl SystemInit

View File

@ -7,7 +7,7 @@
reset_handler:
// set the stack protection
ldr r0, =_sstack
add r0, r0, #16 // padding
add r0, r0, #128 // safety margin for the exception frame
msr MSPLIM, r0
// setup environment for subsequent stage of code

View File

@ -7,7 +7,7 @@
reset_handler:
// set the stack protection
ldr r0, =_sstack
add r0, r0, #16 // padding
add r0, r0, #128 // safety margin for the exception frame
msr MSPLIM, r0
// setup environment for subsequent stage of code

View File

@ -7,7 +7,7 @@
reset_handler:
// set the stack protection
ldr r0, =_sstack
add r0, r0, #16 // padding
add r0, r0, #128 // safety margin for the exception frame
msr MSPLIM, r0
// setup environment for subsequent stage of code

View File

@ -7,7 +7,7 @@
reset_handler:
// set the stack protection
ldr r0, =_sstack
add r0, r0, #16 // padding
add r0, r0, #128 // safety margin for the exception frame
msr MSPLIM, r0
// setup environment for subsequent stage of code

View File

@ -7,7 +7,7 @@
reset_handler:
// set the stack protection
ldr r0, =_sstack
add r0, r0, #16 // padding
add r0, r0, #128 // safety margin for the exception frame
msr MSPLIM, r0
// setup environment for subsequent stage of code