summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/sh/simsh4/startup/linkcmds-le.coff
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-09-15 19:18:36 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-09-15 19:18:36 +0000
commit628d804f36cd252ed24611b0ef9bc0c643cfc5a1 (patch)
treebe5af4f5bbfd76ce4ba3f3858407576c085f17a0 /c/src/lib/libbsp/sh/simsh4/startup/linkcmds-le.coff
parent2008-09-15 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-628d804f36cd252ed24611b0ef9bc0c643cfc5a1.tar.bz2
2008-09-15 Joel Sherrill <joel.sherrill@oarcorp.com>
* Makefile.am, configure.ac, include/bsp.h, startup/hw_init.c, startup/linkcmds, startup/linkcmds-le, startup/linkcmds-le.coff: Use shared bsp_get_work_area() in its own file and rely on BSP Framework to perform more initialization. After factoring this out, it turned out that all SuperH BSPs has the same bsp_start() implementation so this was made shared. * startup/bspstart.c: Removed.
Diffstat (limited to '')
-rw-r--r--c/src/lib/libbsp/sh/simsh4/startup/linkcmds-le.coff19
1 files changed, 6 insertions, 13 deletions
diff --git a/c/src/lib/libbsp/sh/simsh4/startup/linkcmds-le.coff b/c/src/lib/libbsp/sh/simsh4/startup/linkcmds-le.coff
index 038ff2fea4..062e13b768 100644
--- a/c/src/lib/libbsp/sh/simsh4/startup/linkcmds-le.coff
+++ b/c/src/lib/libbsp/sh/simsh4/startup/linkcmds-le.coff
@@ -24,11 +24,11 @@ OUTPUT_FORMAT("elf32-shl")
OUTPUT_ARCH(sh)
ENTRY(_start)
-_HeapSize = DEFINED(_HeapSize) ? _HeapSize : (512 * 1024);
-_WorkspaceSize = DEFINED(_WorkspaceSize) ? _WorkspaceSize : (1024 * 1024);
-
/* These assignments load code into SH7045F EVB SRAM for monitor debugging */
+_RamBase = DEFINED(_RamBase) ? _RamBase : 0x00000000;
+_RamSize = DEFINED(_RamSize) ? _RamSize : 0x01000000;
+
MEMORY
{
ram : o = 0x00000000, l = 0x01000000
@@ -83,6 +83,7 @@ SECTIONS
.plt : { *(.plt) }
.text . :
{
+ _start = .;
*(.text*)
*(.stub)
@@ -153,19 +154,11 @@ SECTIONS
PROVIDE (end = .);
. = ALIGN(16);
- _HeapStart = . ;
- . = . + _HeapSize ;
- PROVIDE( _HeapEnd = . );
-
- . = ALIGN(16);
- _WorkSpaceStart = . ;
- . = . + _WorkspaceSize ;
- PROVIDE(_WorkSpaceEnd = .);
-
- . = ALIGN(16);
.stack . : {
. = . + 4096;
}
+ . = ALIGN(16);
+ _WorkSpaceStart = . ;
. = ALIGN(16);
_CPU_Interrupt_stack_low = . ;