summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/sh/gensh4/startup/linkcmds
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-09-15 19:18:29 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-09-15 19:18:29 +0000
commit11a6c974621241c2d556112fe62700b7dd355b5b (patch)
tree9a794ce5e1eae9bb0fd93e995922057b6748f8a5 /c/src/lib/libbsp/sh/gensh4/startup/linkcmds
parent2008-09-15 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-11a6c974621241c2d556112fe62700b7dd355b5b.tar.bz2
2008-09-15 Joel Sherrill <joel.sherrill@oarcorp.com>
* Makefile.am, configure.ac, include/bsp.h, startup/linkcmds: 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 'c/src/lib/libbsp/sh/gensh4/startup/linkcmds')
-rw-r--r--c/src/lib/libbsp/sh/gensh4/startup/linkcmds19
1 files changed, 7 insertions, 12 deletions
diff --git a/c/src/lib/libbsp/sh/gensh4/startup/linkcmds b/c/src/lib/libbsp/sh/gensh4/startup/linkcmds
index a95a2be2b4..d4bb3fad62 100644
--- a/c/src/lib/libbsp/sh/gensh4/startup/linkcmds
+++ b/c/src/lib/libbsp/sh/gensh4/startup/linkcmds
@@ -22,8 +22,9 @@ ENTRY(_start)
/* Do we need any of these for elf?
__DYNAMIC = 0; */
-_HeapSize = DEFINED(_HeapSize) ? _HeapSize : (2 * 1024 * 1024);
-_WorkspaceSize = DEFINED(_WorkspaceSize) ? _WorkspaceSize : (1024 * 1024);
+_RamBase = DEFINED(_RamBase) ? _RamBase : 0x80000000;
+_RamSize = DEFINED(_RamSize) ? _RamSize : 4M;
+
/*
* Area assignments:
@@ -47,6 +48,7 @@ SECTIONS
} =0
.text :
{
+ _start = .;
*(.text*)
/*
@@ -160,20 +162,13 @@ SECTIONS
__bss_end = .;
} > ram
+ .stack . : {
+ . = . + 4096;
+ }
. = ALIGN(16);
- _HeapStart = . ;
- . = . + _HeapSize ;
- PROVIDE( _HeapEnd = . );
. = ALIGN(16);
_WorkSpaceStart = . ;
- . = . + _WorkspaceSize ;
- PROVIDE(_WorkSpaceEnd = .);
-
- . = ALIGN(16);
- .stack . : {
- . = . + 4096;
- }
. = ALIGN(16);
_CPU_Interrupt_stack_low = . ;