source: rtems/c/src/lib/libbsp/sparc/shared/bspgetworkarea.c @ 0f4ad570

4.104.115
Last change on this file since 0f4ad570 was 0f4ad570, checked in by Joel Sherrill <joel.sherrill@…>, on Dec 18, 2008 at 9:10:04 PM

2008-12-18 Joel Sherrill <joel.sherrill@…>

  • libchip/serial/ns16550_p.h: Remove prototype with no implementation.
  • 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  ssize_t  *work_area_size,
29  void    **heap_start,
30  ssize_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.