From 628d804f36cd252ed24611b0ef9bc0c643cfc5a1 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 15 Sep 2008 19:18:36 +0000 Subject: 2008-09-15 Joel Sherrill * 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. --- c/src/lib/libbsp/sh/simsh4/startup/linkcmds-le | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) (limited to 'c/src/lib/libbsp/sh/simsh4/startup/linkcmds-le') diff --git a/c/src/lib/libbsp/sh/simsh4/startup/linkcmds-le b/c/src/lib/libbsp/sh/simsh4/startup/linkcmds-le index 711659fe85..bd6137ae3c 100644 --- a/c/src/lib/libbsp/sh/simsh4/startup/linkcmds-le +++ b/c/src/lib/libbsp/sh/simsh4/startup/linkcmds-le @@ -8,8 +8,8 @@ ENTRY(_start) /* Do we need any of these for elf? __DYNAMIC = 0; */ -_HeapSize = DEFINED(_HeapSize) ? _HeapSize : (512 * 1024); -_WorkspaceSize = DEFINED(_WorkspaceSize) ? _WorkspaceSize : (1024 * 1024); +_RamBase = DEFINED(_RamBase) ? _RamBase : 0x00000000; +_RamSize = DEFINED(_RamSize) ? _RamSize : 0x01000000; MEMORY { @@ -86,6 +86,7 @@ SECTIONS .text : { . = . + 16; + _start = .; *(.text*) *(.stub) @@ -193,21 +194,14 @@ SECTIONS _end = .; 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 = . ; _CPU_Interrupt_stack_high = _CPU_Interrupt_stack_low + 4096 ; -- cgit v1.2.3