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

feat(core): jump to unprivileged mode after shutdown

This commit is contained in:
Ondřej Vejpustek 2021-06-20 17:57:22 +02:00
parent 40b4f679f9
commit 5984fd6ad7

View File

@ -151,6 +151,9 @@ shutdown_privileged:
// set to value in r2
bl memset_reg
bl clear_otg_hs_memory
ldr r0, =1
msr control, r0 // jump to unprivileged mode
ldr r0, =0
b . // loop forever
.end