diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-09-16 21:44:34 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-09-16 21:44:34 +0000 |
commit | 50530483954d7a406de4f1cb3be0689fc2766a29 (patch) | |
tree | e3c1313e361ff5cfc58a12e0215c2defd231882d /c/src/lib/libbsp/powerpc/ss555/startup | |
parent | 2008-09-16 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-50530483954d7a406de4f1cb3be0689fc2766a29.tar.bz2 |
2008-09-16 Joel Sherrill <joel.sherrill@oarcorp.com>
* Makefile.am, startup/linkcmds: Use top level shared
bsp_get_work_area() implementation.
* startup/bspgetworkarea.c: Removed.
Diffstat (limited to 'c/src/lib/libbsp/powerpc/ss555/startup')
-rw-r--r-- | c/src/lib/libbsp/powerpc/ss555/startup/bspgetworkarea.c | 33 | ||||
-rw-r--r-- | c/src/lib/libbsp/powerpc/ss555/startup/linkcmds | 12 |
2 files changed, 7 insertions, 38 deletions
diff --git a/c/src/lib/libbsp/powerpc/ss555/startup/bspgetworkarea.c b/c/src/lib/libbsp/powerpc/ss555/startup/bspgetworkarea.c deleted file mode 100644 index fad31053c8..0000000000 --- a/c/src/lib/libbsp/powerpc/ss555/startup/bspgetworkarea.c +++ /dev/null @@ -1,33 +0,0 @@ -/* - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#include <bsp.h> -#include <bsp/bootcard.h> -#include <stdint.h> - -extern void *RamEnd; -extern void *WorkspaceBase; - -/* - * This method returns the base address and size of the area which - * is to be allocated between the RTEMS Workspace and the C Program - * Heap. - */ -void bsp_get_work_area( - void **work_area_start, - size_t *work_area_size, - void **heap_start, - size_t *heap_size -) -{ - *work_area_start = (void *)&WorkspaceBase; - *work_area_size = (uintptr_t)&RamEnd - (uintptr_t)&WorkspaceBase; - *heap_start = BSP_BOOTCARD_HEAP_USES_WORK_AREA; - *heap_size = BSP_BOOTCARD_HEAP_SIZE_DEFAULT; -} - diff --git a/c/src/lib/libbsp/powerpc/ss555/startup/linkcmds b/c/src/lib/libbsp/powerpc/ss555/startup/linkcmds index 3ed886c36c..ce15d0b80f 100644 --- a/c/src/lib/libbsp/powerpc/ss555/startup/linkcmds +++ b/c/src/lib/libbsp/powerpc/ss555/startup/linkcmds @@ -28,6 +28,9 @@ int_ram_org = 0x003F9800; /* base of internal RAM */ int_ram_top = 0x00400000; /* top of internal RAM */ ext_ram_size = 0x00080000; /* size of external RAM */ +RamBase = DEFINED(_RamBase) ? RamBase : 0x003F9800; +RamSize = DEFINED(_RamSize) ? RamSize : 0x00486800; +HeapSize = DEFINED(_HeapSize) ? HeapSize : 0x0; SECTIONS { @@ -235,17 +238,16 @@ SECTIONS intrStack = .; PROVIDE(intrStackPtr = intrStack); - WorkspaceBase = .; - /* - * Heap + * Work Area * - * The heap is configured at run-time to use all available memory. It + * The Work Area is configured at run-time to use all available memory. It * begins just after the end of the Workspace and continues to the end of * the external RAM. */ . = DEFINED(RTEMS_DEBUG) ? 0 + ext_ram_size : int_ram_top + ext_ram_size; - RamEnd = .; + WorkAreaBase = .; + /* * Internal I/O devices |