summaryrefslogtreecommitdiff
path: root/bsp
diff options
context:
space:
mode:
authorwuyangyong <[email protected]>2011-07-03 13:28:27 +0000
committerwuyangyong <[email protected]>2011-07-03 13:28:27 +0000
commitdd2a4924aedb95a1d4a976d3a3c63d5edd04765d (patch)
tree21508b284301463f654129a1b03a550577dc0c93 /bsp
parenta2470120e445fb1c7adc844f19dd8ca4b9e34d42 (diff)
rename _system_tack_size to _system_stack_size
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1586 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'bsp')
-rw-r--r--bsp/stm32f107/stm32_rom.ld15
-rw-r--r--bsp/stm32f10x/stm32_rom.ld4
2 files changed, 11 insertions, 8 deletions
diff --git a/bsp/stm32f107/stm32_rom.ld b/bsp/stm32f107/stm32_rom.ld
index 55d71d0c58..60086674b2 100644
--- a/bsp/stm32f107/stm32_rom.ld
+++ b/bsp/stm32f107/stm32_rom.ld
@@ -10,7 +10,7 @@ MEMORY
DATA (rw) : ORIGIN = 0x20000000, LENGTH = 0x00010000
}
ENTRY(Reset_Handler)
-_system_tack_size = 0x100;
+_system_stack_size = 0x100;
SECTIONS
{
@@ -70,6 +70,13 @@ SECTIONS
_edata = . ;
} >DATA
+ .stack :
+ {
+ . = . + _system_stack_size;
+ . = ALIGN(4);
+ _estack = .;
+ } >DATA
+
__bss_start = .;
.bss :
{
@@ -83,11 +90,7 @@ SECTIONS
. = ALIGN(4);
/* This is used by the startup in order to initialize the .bss secion */
- _ebss = . ;
- . = . + _system_tack_size;
- . = ALIGN(4);
- _estack = .;
-
+ _ebss = . ;
*(.bss.init)
} > DATA
__bss_end = .;
diff --git a/bsp/stm32f10x/stm32_rom.ld b/bsp/stm32f10x/stm32_rom.ld
index b6854c9df0..69ca301a92 100644
--- a/bsp/stm32f10x/stm32_rom.ld
+++ b/bsp/stm32f10x/stm32_rom.ld
@@ -10,7 +10,7 @@ MEMORY
DATA (rw) : ORIGIN = 0x20000000, LENGTH = 64k /* 64K sram */
}
ENTRY(Reset_Handler)
-_system_tack_size = 0x100;
+_system_stack_size = 0x100;
SECTIONS
{
@@ -72,7 +72,7 @@ SECTIONS
.stack :
{
- . = . + _system_tack_size;
+ . = . + _system_stack_size;
. = ALIGN(4);
_estack = .;
} >DATA