mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-05-26 02:38:46 +00:00
fix(core): disable MSPLIM before entering next boot stage
[no changelog]
This commit is contained in:
parent
adf9872988
commit
9fb71f8f81
@ -245,6 +245,9 @@ __attribute((naked, noreturn, no_stack_protector)) void jump_to_vectbl(
|
||||
"MOV R10, R0 \n" // R11 is set to r11 argument
|
||||
"MOV R12, R0 \n"
|
||||
|
||||
#if defined(__ARM_ARCH_8M_MAIN__) || defined(__ARM_ARCH_8M_BASE__)
|
||||
"MSR MSPLIM, R1 \n" // Disable MSPLIM
|
||||
#endif
|
||||
"LDR R0, [LR] \n" // Initial MSP value
|
||||
"MSR MSP, R0 \n" // Set MSP
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user