source: rtems/c/src/lib/libbsp/sparc/shared/bspgetworkarea.c @ 7d1b2ca

4.104.115
Last change on this file since 7d1b2ca was 7d1b2ca, checked in by Joel Sherrill <joel.sherrill@…>, on 05/08/09 at 13:24:07

2009-05-08 Joel Sherrill <joel.sherrill@…>

  • shared/bspgetworkarea.c: Switch from ssize_t to uintptr_t for bsp_get_work_area() since the work area is larger than a single allocatable object.
  • Property mode set to 100644
File size: 1.1 KB
Line 
1/*
2 *  This set of routines are the BSP specific initialization
3 *  support routines.
4 *
5 *  COPYRIGHT (c) 1989-2008.
6 *  On-Line Applications Research Corporation (OAR).
7 *
8 *  The license and distribution terms for this file may be
9 *  found in the file LICENSE in this distribution or at
10 *  http://www.rtems.com/license/LICENSE.
11 *
12 *  $Id$
13 */
14
15#include <bsp.h>
16#include <bsp/bootcard.h>
17
18/* Tells us where to put the workspace in case remote debugger is present.  */
19extern uint32_t rdb_start;
20
21/*
22 *  This method returns the base address and size of the area which
23 *  is to be allocated between the RTEMS Workspace and the C Program
24 *  Heap.
25 */
26void bsp_get_work_area(
27  void      **work_area_start,
28  uintptr_t  *work_area_size,
29  void      **heap_start,
30  uintptr_t  *heap_size
31)
32{
33  /* must be identical to STACK_SIZE in start.S */
34  #define STACK_SIZE (16 * 1024)
35
36  *work_area_start       = &end;
37  *work_area_size       = (void *)rdb_start - (void *)&end - STACK_SIZE;
38  *heap_start = BSP_BOOTCARD_HEAP_USES_WORK_AREA;
39  *heap_size = BSP_BOOTCARD_HEAP_SIZE_DEFAULT;
40}
Note: See TracBrowser for help on using the repository browser.