summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2015-07-09 09:59:59 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2015-07-09 10:00:26 +0200
commitc2596dfbd02f783e6a88c98a5dbf325874e755cb (patch)
treef611ae14b5d127d8caef47ddfbf37870f572f2c1
parent8406d94283cc704df2c0d8aa017310e3e4ad0919 (diff)
downloadrtems-c2596dfbd02f783e6a88c98a5dbf325874e755cb.tar.bz2
bsps/powerpc: Fix small-data area issue
Update #2369.
-rw-r--r--c/src/lib/libbsp/powerpc/shared/startup/bspgetworkarea.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/c/src/lib/libbsp/powerpc/shared/startup/bspgetworkarea.c b/c/src/lib/libbsp/powerpc/shared/startup/bspgetworkarea.c
index 94110389f7..3e80663840 100644
--- a/c/src/lib/libbsp/powerpc/shared/startup/bspgetworkarea.c
+++ b/c/src/lib/libbsp/powerpc/shared/startup/bspgetworkarea.c
@@ -7,14 +7,16 @@
#include <bsp.h>
#include <bsp/bootcard.h>
-extern void *__rtems_end;
+#include <libcpu/powerpc-utility.h>
+
+LINKER_SYMBOL(__rtems_end)
void bsp_work_area_initialize(void)
{
uintptr_t work_size;
uintptr_t work_area;
- work_area = (uintptr_t)&__rtems_end +
+ work_area = (uintptr_t)__rtems_end +
rtems_configuration_get_interrupt_stack_size();
work_size = (uintptr_t)BSP_mem_size - work_area;