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 #include -extern void *__rtems_end; +#include + +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;