diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-09-15 19:18:31 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-09-15 19:18:31 +0000 |
commit | 512d0fcba10b84737fbaca5dd078995000667120 (patch) | |
tree | 672cf547719761f6016854ba3cdf72d541c18d62 /c/src/lib/libbsp/sh/shsim/startup | |
parent | 2008-09-15 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-512d0fcba10b84737fbaca5dd078995000667120.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.
Diffstat (limited to 'c/src/lib/libbsp/sh/shsim/startup')
-rw-r--r-- | c/src/lib/libbsp/sh/shsim/startup/linkcmds | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/c/src/lib/libbsp/sh/shsim/startup/linkcmds b/c/src/lib/libbsp/sh/shsim/startup/linkcmds index ebe8b8f0fd..318b29f772 100644 --- a/c/src/lib/libbsp/sh/shsim/startup/linkcmds +++ b/c/src/lib/libbsp/sh/shsim/startup/linkcmds @@ -22,6 +22,9 @@ OUTPUT_ARCH(sh) ENTRY(_start) +_RamBase = DEFINED(_RamBase) ? _RamBase : 0x00040000; +_RamSize = DEFINED(_RamSize) ? _RamSize : 512K; + MEMORY { /* Real memory layout submitted @@ -39,7 +42,7 @@ MEMORY SECTIONS { /* boot vector table */ - .monvects 0x00000000 (NOLOAD) : + .monvects (NOLOAD) : { _monvects = . ; } > rom @@ -101,6 +104,7 @@ SECTIONS .plt : { *(.plt) } .text . : { + _start = .; *(.text*) *(.stub) @@ -173,13 +177,7 @@ SECTIONS _end = . ; PROVIDE (end = .); - _HeapStart = . ; - . = . + 1024 * 20 ; - PROVIDE( _HeapEnd = . ); - _WorkSpaceStart = . ; - /* XXX . = 0x00080000 ; */ - PROVIDE(_WorkSpaceEnd = .); _CPU_Interrupt_stack_low = 0x00080000 ; _CPU_Interrupt_stack_high = _CPU_Interrupt_stack_low + 4096 ; |