forked from Imagelibrary/rtems
2009-04-06 Joel Sherrill <joel.sherrill@oarcorp.com>
* startup/linkcmds: Move stack so it does not overlap workarea.
This commit is contained in:
@@ -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>
|
2009-03-26 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||||
|
|
||||||
* Makefile.am, console/console.c, startup/linkcmds: Now links but
|
* Makefile.am, console/console.c, startup/linkcmds: Now links but
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ DO NOT MODIFY THIS FILE
|
|||||||
RamBase = DEFINED(RamBase) ? RamBase : 0x00000000;
|
RamBase = DEFINED(RamBase) ? RamBase : 0x00000000;
|
||||||
RamSize = DEFINED(RamSize) ? RamSize : 0x00800000;
|
RamSize = DEFINED(RamSize) ? RamSize : 0x00800000;
|
||||||
HeapSize = DEFINED(HeapSize) ? HeapSize : 0x0;
|
HeapSize = DEFINED(HeapSize) ? HeapSize : 0x0;
|
||||||
|
StackSize = DEFINED(StackSize) ? HeapSize : 1024;
|
||||||
|
|
||||||
MEMORY
|
MEMORY
|
||||||
{
|
{
|
||||||
@@ -242,6 +243,9 @@ SECTIONS
|
|||||||
|
|
||||||
. = ALIGN(32 / 8);
|
. = ALIGN(32 / 8);
|
||||||
__bss_end = ABSOLUTE(.);
|
__bss_end = ABSOLUTE(.);
|
||||||
|
_stack_low = ABSOLUTE(.);
|
||||||
|
. += StackSize;
|
||||||
|
_stack_high = ABSOLUTE(.);
|
||||||
WorkAreaBase = .;
|
WorkAreaBase = .;
|
||||||
} > onchip_memory_0
|
} > onchip_memory_0
|
||||||
|
|
||||||
@@ -323,8 +327,8 @@ __alt_data_end = 0x00800000;
|
|||||||
* The next two symbols define the location of the default stack. You can
|
* The next two symbols define the location of the default stack. You can
|
||||||
* override them to move the stack to a different memory.
|
* override them to move the stack to a different memory.
|
||||||
*/
|
*/
|
||||||
PROVIDE( __alt_stack_pointer = __alt_data_end );
|
PROVIDE( __alt_stack_pointer = _stack_high );
|
||||||
PROVIDE( __alt_stack_limit = _end );
|
PROVIDE( __alt_stack_limit = _stack_low );
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This symbol controls where the start of the heap is. If the stack is
|
* This symbol controls where the start of the heap is. If the stack is
|
||||||
|
|||||||
Reference in New Issue
Block a user