mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 15:15:44 +00:00
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:
@@ -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.
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user