Added main stack painting for STM32F4
This commit is contained in:
+10
@@ -99,6 +99,16 @@ LoopFillZerobss:
|
|||||||
cmp r2, r3
|
cmp r2, r3
|
||||||
bcc FillZerobss
|
bcc FillZerobss
|
||||||
|
|
||||||
|
/*Paint Main Stack */
|
||||||
|
ldr r2, = _main_stack_start
|
||||||
|
PaintMainStack:
|
||||||
|
movs r3, #0x55555555
|
||||||
|
str r3, [r2], #4
|
||||||
|
LoopPaintMainStack:
|
||||||
|
ldr r3, = _estack
|
||||||
|
cmp r2, r3
|
||||||
|
bcc PaintMainStack
|
||||||
|
|
||||||
/* Call the clock system intitialization function.*/
|
/* Call the clock system intitialization function.*/
|
||||||
bl SystemInit
|
bl SystemInit
|
||||||
/* Call C++ constructors for static objects */
|
/* Call C++ constructors for static objects */
|
||||||
|
|||||||
Reference in New Issue
Block a user