2009-04-06 Joel Sherrill <joel.sherrill@oarcorp.com>

* startup/linkcmds: Move stack so it does not overlap workarea.
This commit is contained in:
Joel Sherrill
2009-04-06 15:25:56 +00:00
parent 8732f1be94
commit 69722ac959
2 changed files with 10 additions and 2 deletions

View File

@@ -1,3 +1,7 @@
2009-04-06 Joel Sherrill <joel.sherrill@oarcorp.com>
* startup/linkcmds: Move stack so it does not overlap workarea.
2009-03-26 Joel Sherrill <joel.sherrill@oarcorp.com>
* Makefile.am, console/console.c, startup/linkcmds: Now links but

View File

@@ -24,6 +24,7 @@ DO NOT MODIFY THIS FILE
RamBase = DEFINED(RamBase) ? RamBase : 0x00000000;
RamSize = DEFINED(RamSize) ? RamSize : 0x00800000;
HeapSize = DEFINED(HeapSize) ? HeapSize : 0x0;
StackSize = DEFINED(StackSize) ? HeapSize : 1024;
MEMORY
{
@@ -242,6 +243,9 @@ SECTIONS
. = ALIGN(32 / 8);
__bss_end = ABSOLUTE(.);
_stack_low = ABSOLUTE(.);
. += StackSize;
_stack_high = ABSOLUTE(.);
WorkAreaBase = .;
} > onchip_memory_0
@@ -323,8 +327,8 @@ __alt_data_end = 0x00800000;
* The next two symbols define the location of the default stack. You can
* override them to move the stack to a different memory.
*/
PROVIDE( __alt_stack_pointer = __alt_data_end );
PROVIDE( __alt_stack_limit = _end );
PROVIDE( __alt_stack_pointer = _stack_high );
PROVIDE( __alt_stack_limit = _stack_low );
/*
* This symbol controls where the start of the heap is. If the stack is