2008-08-19 Joel Sherrill <joel.sherrill@OARcorp.com>

* shared/m68kbspgetworkarea.c: Move extern of global symbols from
	linkcmds outside function.
This commit is contained in:
Joel Sherrill
2008-08-19 14:39:21 +00:00
parent 60a3fa0c2e
commit ea0586b1a1
2 changed files with 13 additions and 5 deletions

View File

@@ -1,3 +1,8 @@
2008-08-19 Joel Sherrill <joel.sherrill@OARcorp.com>
* shared/m68kbspgetworkarea.c: Move extern of global symbols from
linkcmds outside function.
2008-08-19 Ralf Corsépius <ralf.corsepius@rtems.org> 2008-08-19 Ralf Corsépius <ralf.corsepius@rtems.org>
* shared/bspspuriousinit.c: Add missing prototypes. * shared/bspspuriousinit.c: Add missing prototypes.

View File

@@ -16,6 +16,14 @@
#include <bsp.h> #include <bsp.h>
#include <bsp/bootcard.h> #include <bsp/bootcard.h>
/*
* These are provided by the linkcmds of ALL M68K BSPs which use this file.
*/
extern char _RamBase[];
extern char _WorkspaceBase[];
extern char _HeapSize[];
extern char _RamSize[];
/* /*
* This method returns the base address and size of the area which * This method returns the base address and size of the area which
* is to be allocated between the RTEMS Workspace and the C Program * is to be allocated between the RTEMS Workspace and the C Program
@@ -28,11 +36,6 @@ void bsp_get_work_area(
size_t *heap_size size_t *heap_size
) )
{ {
extern char _RamBase[];
extern char _WorkspaceBase[];
extern char _HeapSize[];
extern char _RamSize[];
*work_area_start = _WorkspaceBase; *work_area_start = _WorkspaceBase;
*work_area_size = (unsigned long)_RamBase + (unsigned long) _RamSize - *work_area_size = (unsigned long)_RamBase + (unsigned long) _RamSize -
(unsigned long)_WorkspaceBase; (unsigned long)_WorkspaceBase;