source: rtems/c/src/lib/libbsp/arm/nds/startup/bspgetworkarea.c @ 12d853d

4.104.11
Last change on this file since 12d853d was 12d853d, checked in by Joel Sherrill <joel.sherrill@…>, on Sep 14, 2008 at 8:04:36 PM

2008-09-14 Joel Sherrill <joel.sherrill@…>

  • Makefile.am, configure.ac: Split out bsp_cleanup() and bsp_get_work_area() into their own files.
  • startup/bspclean.c, startup/bspgetworkarea.c, startup/bspstart.c: New files.
  • startup/start.c: Removed.
  • Property mode set to 100644
File size: 814 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.com/license/LICENSE.
5 *
6 *  $Id$
7 */
8
9#include <bsp.h>
10#include <bsp/bootcard.h>
11#include <stdint.h>
12
13/*
14 *  These are from the linker script.
15 */
16extern void * _end;
17extern void *__ewram_end;
18
19/*
20 *  This method returns the base address and size of the area which
21 *  is to be allocated between the RTEMS Workspace and the C Program
22 *  Heap.
23 */
24void bsp_get_work_area(
25  void   **work_area_start,
26  size_t  *work_area_size,
27  void   **heap_start,
28  size_t  *heap_size
29)
30{
31  *work_area_start = &_end;
32  *work_area_size  = (void *)&__ewram_end - (void *)&_end;
33  *heap_start      = BSP_BOOTCARD_HEAP_USES_WORK_AREA;
34  *heap_size       = BSP_BOOTCARD_HEAP_SIZE_DEFAULT;
35}
36
Note: See TracBrowser for help on using the repository browser.