diff options
Diffstat (limited to 'c/src/lib/libbsp/mips/csb350/startup')
-rw-r--r-- | c/src/lib/libbsp/mips/csb350/startup/bspgetworkarea.c | 43 | ||||
-rw-r--r-- | c/src/lib/libbsp/mips/csb350/startup/linkcmds | 10 |
2 files changed, 7 insertions, 46 deletions
diff --git a/c/src/lib/libbsp/mips/csb350/startup/bspgetworkarea.c b/c/src/lib/libbsp/mips/csb350/startup/bspgetworkarea.c deleted file mode 100644 index d8f4be7095..0000000000 --- a/c/src/lib/libbsp/mips/csb350/startup/bspgetworkarea.c +++ /dev/null @@ -1,43 +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 *_sdram_size; -extern void *_sdram_base; -extern void *_bss_free_start; - -/* - * 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 -) -{ - uintptr_t size; - - /* - * Old code had hard-coded heap size of 0x20000 and a comment indicating - * something about the undefined symbol MEM_NOCACHE_SIZE. - */ - size = (uintptr_t)&_sdram_base + (uintptr_t)&_sdram_size - - (uintptr_t)&_bss_free_start; - - *work_area_start = (void *)&_bss_free_start; - *work_area_size = size; - *heap_start = BSP_BOOTCARD_HEAP_USES_WORK_AREA; - *heap_size = BSP_BOOTCARD_HEAP_SIZE_DEFAULT; -} - diff --git a/c/src/lib/libbsp/mips/csb350/startup/linkcmds b/c/src/lib/libbsp/mips/csb350/startup/linkcmds index 08c5040f1c..4336bfd401 100644 --- a/c/src/lib/libbsp/mips/csb350/startup/linkcmds +++ b/c/src/lib/libbsp/mips/csb350/startup/linkcmds @@ -10,11 +10,15 @@ * Declare some sizes. */ -_StackSize = DEFINED(_StackSize) ? _StackSize : 0x4000; - _sdram_base = DEFINED(_sdram_base) ? _sdram_base : 0x80400000; _sdram_size = DEFINED(_sdram_size) ? _sdram_size : 12M; +/* standard items provided by RTEMS linkcmds files */ +RamBase = _sdram_base; +RamSize = _sdram_size; +HeapSize = DEFINED(HeapSize) ? HeapSize : 0x0; +_StackSize = DEFINED(_StackSize) ? _StackSize : 0x4000; + MEMORY { @@ -170,7 +174,7 @@ SECTIONS end = .; _end = .; . = ALIGN (1024); - _bss_free_start = .; + WorkAreaBase = .; } >ram |