commit | 664d13644d15f2bbcae791647200a7c89ce65676 | [log] [tgz] |
---|---|---|
author | Michel Jaouen <michel.jaouen@st.com> | Wed Jun 24 20:17:06 2020 +0200 |
committer | Michel Jaouen <michel.jaouen@st.com> | Thu Aug 13 11:13:03 2020 +0200 |
tree | bab6aaec0343322fadf68632050a25fdd83da433 | |
parent | e2df5c11d71d1636e0642d64675e43656e1df330 [diff] |
Boot : Fix boot_platform_quit According to compiler and optimization: - registers used to retrieve vt_cpy are pushed in sp, - sp is modified before calling boot_jump_to_next_image(i.e if some non scratch registers have been used),this creates an incorrect sp. Change-Id: I866ac756d3611f67636b99b10d340c77dd12b148 Signed-off-by: Michel Jaouen <michel.jaouen@st.com>
diff --git a/platform/ext/common/boot_hal.c b/platform/ext/common/boot_hal.c index 50a6834..a005b73 100644 --- a/platform/ext/common/boot_hal.c +++ b/platform/ext/common/boot_hal.c
@@ -85,7 +85,7 @@ */ __set_MSPLIM(0); #endif - __set_MSP(vt->msp); + __set_MSP(vt_cpy->msp); __DSB(); __ISB();
diff --git a/platform/ext/target/stm/stm32l5xx/bl2/boot_hal.c b/platform/ext/target/stm/stm32l5xx/bl2/boot_hal.c index f14008a..8df0015 100644 --- a/platform/ext/target/stm/stm32l5xx/bl2/boot_hal.c +++ b/platform/ext/target/stm/stm32l5xx/bl2/boot_hal.c
@@ -86,7 +86,7 @@ */ __set_MSPLIM(0); #endif - __set_MSP(vt->msp); + __set_MSP(vt_cpy->msp); __DSB(); __ISB();