source: rtems/c/src/lib/libbsp/powerpc/shared/startup/bspgetworkarea.c @ c2596df

4.115
Last change on this file since c2596df was c2596df, checked in by Sebastian Huber <sebastian.huber@…>, on 07/09/15 at 07:59:59

bsps/powerpc: Fix small-data area issue

Update #2369.

  • Property mode set to 100644
File size: 583 bytes
Line 
1/*
2 *  The license and distribution terms for this file may be
3 *  found in the file LICENSE in this distribution or at
4 *  http://www.rtems.org/license/LICENSE.
5 */
6
7#include <bsp.h>
8#include <bsp/bootcard.h>
9
10#include <libcpu/powerpc-utility.h>
11
12LINKER_SYMBOL(__rtems_end)
13
14void bsp_work_area_initialize(void)
15{
16  uintptr_t work_size;
17  uintptr_t work_area;
18
19  work_area = (uintptr_t)__rtems_end +
20              rtems_configuration_get_interrupt_stack_size();
21  work_size = (uintptr_t)BSP_mem_size - work_area;
22
23  bsp_work_area_initialize_default((void *) work_area, work_size);
24}
Note: See TracBrowser for help on using the repository browser.