From 94bbe3a450a08d1a652559a0d744d7ab9ad09626 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 16 Sep 2008 20:13:21 +0000 Subject: 2008-09-16 Joel Sherrill * Makefile.am, startup/linkcmds, startup/linkcmds.rom, startup/linkcmds.rom2ram: Use top level shared bsp_get_work_area() implementation. --- c/src/lib/libbsp/sh/gensh4/startup/linkcmds.rom | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'c/src/lib/libbsp/sh/gensh4/startup/linkcmds.rom') diff --git a/c/src/lib/libbsp/sh/gensh4/startup/linkcmds.rom b/c/src/lib/libbsp/sh/gensh4/startup/linkcmds.rom index b806b3d74b..3dcddfa3eb 100644 --- a/c/src/lib/libbsp/sh/gensh4/startup/linkcmds.rom +++ b/c/src/lib/libbsp/sh/gensh4/startup/linkcmds.rom @@ -24,8 +24,9 @@ ENTRY(_start) /* Do we need any of these for elf? __DYNAMIC = 0; */ +_RamBase = DEFINED(_RamBase) ? _RamBase : 0x88000000; +_RamSize = DEFINED(_RamSize) ? _RamSize : 8M; _HeapSize = DEFINED(_HeapSize) ? _HeapSize : (2 * 1024 * 1024); -_WorkspaceSize = DEFINED(_WorkspaceSize) ? _WorkspaceSize : (1024 * 1024); /* * Area assignments: @@ -169,14 +170,7 @@ SECTIONS } > ram . = ALIGN(16); - _HeapStart = . ; - . = . + _HeapSize ; - PROVIDE( _HeapEnd = . ); - - . = ALIGN(16); - _WorkSpaceStart = . ; - . = . + _WorkspaceSize ; - PROVIDE(_WorkSpaceEnd = .); + _WorkAreaBase = . ; . = ALIGN(16); .stack . : { -- cgit v1.2.3