aboutsummaryrefslogtreecommitdiff
path: root/platform/ext
diff options
context:
space:
mode:
authorMichel Jaouen <michel.jaouen@st.com>2021-07-08 12:16:03 +0200
committerMichel Jaouen <michel.jaouen@st.com>2021-07-09 18:24:43 +0200
commit046fbe0697f7ac74fe62d4930a7a09ffafed5c89 (patch)
tree46c44d342ba073f01437a50368111343e25737a5 /platform/ext
parent60a02b290f8ebf2f85856485f0c185572726519d (diff)
downloadtrusted-firmware-m-046fbe0697f7ac74fe62d4930a7a09ffafed5c89.tar.gz
Platform: stm: fix after spm modification
This fix is required for build with GNUARM. Change-Id: I5e10e7b21104673e3f4f26eaf209bfb5b93e3954 Signed-off-by: Michel Jaouen <michel.jaouen@st.com>
Diffstat (limited to 'platform/ext')
-rw-r--r--platform/ext/target/stm/common/stm32l5xx/Device/Source/startup_stm32l5xx_s.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/platform/ext/target/stm/common/stm32l5xx/Device/Source/startup_stm32l5xx_s.c b/platform/ext/target/stm/common/stm32l5xx/Device/Source/startup_stm32l5xx_s.c
index 8c7869585f..9bdea560cc 100644
--- a/platform/ext/target/stm/common/stm32l5xx/Device/Source/startup_stm32l5xx_s.c
+++ b/platform/ext/target/stm/common/stm32l5xx/Device/Source/startup_stm32l5xx_s.c
@@ -348,6 +348,9 @@ void Reset_Handler(void)
{
__disable_irq();
__set_MSPLIM((uint32_t)(&__MSP_STACK_LIMIT));
+#if defined ( __GNUC__ )
+ __set_MSP((uint32_t)(&__MSP_INITIAL_SP));
+#endif
SystemInit(); /* CMSIS System Initialization */
__set_PSP((uint32_t)(&__INITIAL_SP));
__set_PSPLIM((uint32_t)(&__STACK_LIMIT));