summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbernard.xiong <[email protected]>2009-10-23 06:14:57 +0000
committerbernard.xiong <[email protected]>2009-10-23 06:14:57 +0000
commitf5bcb86743f424306c417b2a595f95642722e003 (patch)
tree47ab89d55167696574d0a75fe21d42f9e15eaf42
parentd3e4d4697b44de489ee1c545be5abb623c1cb4e7 (diff)
add stack space definitions in GCC startup code.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@126 bbd45198-f89e-11dd-88c7-29a3b14d5316
-rw-r--r--libcpu/arm/stm32/start_gcc.s10
1 files changed, 7 insertions, 3 deletions
diff --git a/libcpu/arm/stm32/start_gcc.s b/libcpu/arm/stm32/start_gcc.s
index 6dc850bed5..04e46bbc27 100644
--- a/libcpu/arm/stm32/start_gcc.s
+++ b/libcpu/arm/stm32/start_gcc.s
@@ -27,7 +27,11 @@
*
* <h2><center>&copy; COPYRIGHT 2009 STMicroelectronics</center></h2>
*/
-
+.section .bss.init
+.equ Stack_Size, 0x00000200
+.space Stack_Size
+Initial_spTop:
+
.syntax unified
.cpu cortex-m3
.fpu softvfp
@@ -48,7 +52,7 @@ defined in linker script */
/* end address for the .bss section. defined in linker script */
.word _ebss
-.equ Initial_spTop, 0x20000400
+// .equ Initial_spTop, 0x20000200
.equ BootRAM, 0xF1E0F85F
/**
* @brief This is the code that gets called when the processor first
@@ -64,7 +68,7 @@ defined in linker script */
.type Reset_Handler, %function
Reset_Handler:
/* restore original stack pointer */
- LDR r0, =_estack
+ LDR r0, =Initial_spTop
MSR msp, r0
/* Copy the data segment initializers from flash to SRAM */
movs r1, #0