summaryrefslogtreecommitdiffstats
path: root/bsps/powerpc/shared/start/bspgetworkarea.c
blob: 8873ffe574a78fadac7ce9ba21aa67541b8e6a0d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
 *  The license and distribution terms for this file may be
 *  found in the file LICENSE in this distribution or at
 *  http://www.rtems.org/license/LICENSE.
 */

#include <bsp.h>
#include <bsp/bootcard.h>

#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_size = (uintptr_t)BSP_mem_size - work_area;

  bsp_work_area_initialize_default((void *) work_area, work_size);
}