Repository: incubator-mynewt-core
Updated Branches:
  refs/heads/develop a6ab2016d -> 1c1d93b4a


stm32f4 bsps; clear out the 2nd BSS area as well.


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/1c1d93b4
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/1c1d93b4
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/1c1d93b4

Branch: refs/heads/develop
Commit: 1c1d93b4adfb76bc9bf9b6493191ece3d49e8d6f
Parents: a6ab201
Author: Marko Kiiskila <[email protected]>
Authored: Thu Jan 12 10:56:30 2017 -0800
Committer: Marko Kiiskila <[email protected]>
Committed: Thu Jan 12 10:56:30 2017 -0800

----------------------------------------------------------------------
 .../nucleo-f401re/src/arch/cortex_m4/startup_STM32F40x.s  | 10 ++++++++++
 .../src/arch/cortex_m4/startup_STM32F40x.s                | 10 ++++++++++
 .../src/arch/cortex_m4/startup_STM32F40x.s                | 10 ++++++++++
 3 files changed, 30 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/1c1d93b4/hw/bsp/nucleo-f401re/src/arch/cortex_m4/startup_STM32F40x.s
----------------------------------------------------------------------
diff --git a/hw/bsp/nucleo-f401re/src/arch/cortex_m4/startup_STM32F40x.s 
b/hw/bsp/nucleo-f401re/src/arch/cortex_m4/startup_STM32F40x.s
index 646b4bf..e84feac 100644
--- a/hw/bsp/nucleo-f401re/src/arch/cortex_m4/startup_STM32F40x.s
+++ b/hw/bsp/nucleo-f401re/src/arch/cortex_m4/startup_STM32F40x.s
@@ -218,6 +218,16 @@ Reset_Handler:
     strlt   r0, [r1], #4
     blt    .LC2
 
+    /* Set the other bss section to zero as well*/
+    ldr     r1, =__bss_start__
+    ldr     r2, =__bss_end__
+
+.LC3:
+    cmp     r1, r2
+    itt     lt
+    strlt   r0, [r1], #4
+    blt    .LC3
+
 /* Call system initialization and startup routines */
     ldr    r0, =SystemInit
     blx    r0

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/1c1d93b4/hw/bsp/olimex_stm32-e407_devboard/src/arch/cortex_m4/startup_STM32F40x.s
----------------------------------------------------------------------
diff --git 
a/hw/bsp/olimex_stm32-e407_devboard/src/arch/cortex_m4/startup_STM32F40x.s 
b/hw/bsp/olimex_stm32-e407_devboard/src/arch/cortex_m4/startup_STM32F40x.s
index 646b4bf..e84feac 100755
--- a/hw/bsp/olimex_stm32-e407_devboard/src/arch/cortex_m4/startup_STM32F40x.s
+++ b/hw/bsp/olimex_stm32-e407_devboard/src/arch/cortex_m4/startup_STM32F40x.s
@@ -218,6 +218,16 @@ Reset_Handler:
     strlt   r0, [r1], #4
     blt    .LC2
 
+    /* Set the other bss section to zero as well*/
+    ldr     r1, =__bss_start__
+    ldr     r2, =__bss_end__
+
+.LC3:
+    cmp     r1, r2
+    itt     lt
+    strlt   r0, [r1], #4
+    blt    .LC3
+
 /* Call system initialization and startup routines */
     ldr    r0, =SystemInit
     blx    r0

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/1c1d93b4/hw/bsp/stm32f4discovery/src/arch/cortex_m4/startup_STM32F40x.s
----------------------------------------------------------------------
diff --git a/hw/bsp/stm32f4discovery/src/arch/cortex_m4/startup_STM32F40x.s 
b/hw/bsp/stm32f4discovery/src/arch/cortex_m4/startup_STM32F40x.s
index 646b4bf..e84feac 100644
--- a/hw/bsp/stm32f4discovery/src/arch/cortex_m4/startup_STM32F40x.s
+++ b/hw/bsp/stm32f4discovery/src/arch/cortex_m4/startup_STM32F40x.s
@@ -218,6 +218,16 @@ Reset_Handler:
     strlt   r0, [r1], #4
     blt    .LC2
 
+    /* Set the other bss section to zero as well*/
+    ldr     r1, =__bss_start__
+    ldr     r2, =__bss_end__
+
+.LC3:
+    cmp     r1, r2
+    itt     lt
+    strlt   r0, [r1], #4
+    blt    .LC3
+
 /* Call system initialization and startup routines */
     ldr    r0, =SystemInit
     blx    r0

Reply via email to