summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/m68k/shared/m68kbspgetworkarea.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-08-19 14:39:21 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-08-19 14:39:21 +0000
commitea0586b1a196c345731b64e28fb82625f92195ca (patch)
treeb4ceab86aa0f6f559c0956727be01532213e4e15 /c/src/lib/libbsp/m68k/shared/m68kbspgetworkarea.c
parent2008-08-19 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadrtems-ea0586b1a196c345731b64e28fb82625f92195ca.tar.bz2
2008-08-19 Joel Sherrill <joel.sherrill@OARcorp.com>
* shared/m68kbspgetworkarea.c: Move extern of global symbols from linkcmds outside function.
Diffstat (limited to '')
-rw-r--r--c/src/lib/libbsp/m68k/shared/m68kbspgetworkarea.c13
1 files changed, 8 insertions, 5 deletions
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
@@ -17,6 +17,14 @@
#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
* is to be allocated between the RTEMS Workspace and the C Program
* Heap.
@@ -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;