aboutsummaryrefslogtreecommitdiffstats
path: root/os/ports/GCC/ARMCMx/LPC13xx
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-08-07 15:48:55 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-08-07 15:48:55 +0000
commit04d4c09cfaa244d7373afdf8b978e8423efd9ea7 (patch)
treeb1121c0cc873eeb943bbb0d6e32d994f2d6d76b9 /os/ports/GCC/ARMCMx/LPC13xx
parentaa865517b8d42665bab0ae03487a7f9dfa9c40f4 (diff)
downloadChibiOS-04d4c09cfaa244d7373afdf8b978e8423efd9ea7.tar.gz
ChibiOS-04d4c09cfaa244d7373afdf8b978e8423efd9ea7.tar.bz2
ChibiOS-04d4c09cfaa244d7373afdf8b978e8423efd9ea7.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3202 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/ports/GCC/ARMCMx/LPC13xx')
-rw-r--r--os/ports/GCC/ARMCMx/LPC13xx/ld/LPC1343.ld18
1 files changed, 16 insertions, 2 deletions
diff --git a/os/ports/GCC/ARMCMx/LPC13xx/ld/LPC1343.ld b/os/ports/GCC/ARMCMx/LPC13xx/ld/LPC1343.ld
index 703f09ca4..71f3c2c4a 100644
--- a/os/ports/GCC/ARMCMx/LPC13xx/ld/LPC1343.ld
+++ b/os/ports/GCC/ARMCMx/LPC13xx/ld/LPC1343.ld
@@ -23,7 +23,6 @@
*/
__main_stack_size__ = 0x0100;
__process_stack_size__ = 0x0100;
-__stacks_total_size__ = __main_stack_size__ + __process_stack_size__;
MEMORY
{
@@ -98,6 +97,21 @@ SECTIONS
_etext = .;
_textdata = _etext;
+ .stacks :
+ {
+ . = ALIGN(8);
+ __main_stack_base__ = .;
+ . += __main_stack_size__;
+ . = ALIGN(8);
+ __main_stack_end__ = .;
+ __process_stack_base__ = .;
+ __main_thread_stack_base__ = .;
+ . += __process_stack_size__;
+ . = ALIGN(8);
+ __process_stack_end__ = .;
+ __main_thread_stack_end__ = .;
+ } > ram
+
.data :
{
PROVIDE(_data = .);
@@ -127,4 +141,4 @@ PROVIDE(end = .);
_end = .;
__heap_base__ = _end;
-__heap_end__ = __ram_end__ - __stacks_total_size__;
+__heap_end__ = __ram_end__;