From ea0586b1a196c345731b64e28fb82625f92195ca Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 19 Aug 2008 14:39:21 +0000 Subject: 2008-08-19 Joel Sherrill * shared/m68kbspgetworkarea.c: Move extern of global symbols from linkcmds outside function. --- c/src/lib/libbsp/m68k/shared/m68kbspgetworkarea.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'c/src/lib/libbsp/m68k/shared/m68kbspgetworkarea.c') diff --git a/c/src/lib/libbsp/m68k/shared/m68kbspgetworkarea.c b/c/src/lib/libbsp/m68k/shared/m68kbspgetworkarea.c index 61e9efedfe..ce316fe832 100644 --- a/c/src/lib/libbsp/m68k/shared/m68kbspgetworkarea.c +++ b/c/src/lib/libbsp/m68k/shared/m68kbspgetworkarea.c @@ -16,6 +16,14 @@ #include #include +/* + * 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 * 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 ) { - extern char _RamBase[]; - extern char _WorkspaceBase[]; - extern char _HeapSize[]; - extern char _RamSize[]; - *work_area_start = _WorkspaceBase; *work_area_size = (unsigned long)_RamBase + (unsigned long) _RamSize - (unsigned long)_WorkspaceBase; -- cgit v1.2.3