From 71c00c5663cc68b2c8aa4678b84518ebd85b0ef8 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 16 Sep 2008 19:01:46 +0000 Subject: 2008-09-16 Joel Sherrill * clock/clock.c, startup/bspstart.c, startup/linkcmds: Add use of bsp_get_work_area() in its own file and rely on BSP Framework to perform more initialization. * startup/bspgetworkarea.c: New file. --- c/src/lib/libbsp/c4x/c4xsim/startup/linkcmds | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'c/src/lib/libbsp/c4x/c4xsim/startup/linkcmds') diff --git a/c/src/lib/libbsp/c4x/c4xsim/startup/linkcmds b/c/src/lib/libbsp/c4x/c4xsim/startup/linkcmds index 02e4f5eb17..2526b64663 100644 --- a/c/src/lib/libbsp/c4x/c4xsim/startup/linkcmds +++ b/c/src/lib/libbsp/c4x/c4xsim/startup/linkcmds @@ -1,9 +1,10 @@ /* OUTPUT_FORMAT("coff-c4x") */ - __SYSMEM_SIZE = DEFINED(__SYSMEM_SIZE) ? __SYSMEM_SIZE : 0x4000; __STACK_SIZE = DEFINED(__STACK_SIZE) ? __STACK_SIZE : 0x1000; - __HeapSize = DEFINED(__HeapSize) ? __HeapSize : 0x10000; - __WorkspaceMax = DEFINED(__WorkspaceMax) ? __WorkspaceMax : 256K; __ClockFrequency = DEFINED(_ClockFrequency) ? _ClockFrequency : 50; + +_RamBase = DEFINED(_RamBase) ? _RamBase : 0x0; +_RamSize = DEFINED(_RamSize) ? _RamSize : 4M; + ENTRY(_start) SECTIONS { @@ -64,10 +65,7 @@ SECTIONS } .heap : { - __HeapStart = .; - . += __HeapSize; - __WorkspaceBase = .; - . += __WorkspaceMax; + _WorkspaceBase = .; } /* .sysmem : -- cgit v1.2.3