source: rtems/bsps/sparc/shared/start/bspgetworkarea.c @ 07e2eac

5
Last change on this file since 07e2eac was 07e2eac, checked in by Sebastian Huber <sebastian.huber@…>, on 12/13/19 at 13:22:16

bsps: Remove uses of BSP_GET_WORK_AREA_DEBUG

The code covered by BSP_GET_WORK_AREA_DEBUG was basically dead code
since there was no normal way to activate it (e.g. via a BSP
configuration option). A follow up patch will bring back this feature
through a CONFIGURE_VERBOSE_SYSTEM_INITIALIZATION configuration option.

Update #3838.

  • Property mode set to 100644
File size: 939 bytes
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.org/license/LICENSE.
11 */
12
13#include <bsp.h>
14#include <bsp/bootcard.h>
15
16/* Tells us where to put the workspace in case remote debugger is present.  */
17extern uint32_t rdb_start;
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_work_area_initialize(void)
25{
26  /* Early dynamic memory allocator is placed just above _end  */
27  void *work_area_start = (void *)&end;
28  uintptr_t work_area_size = (uintptr_t)rdb_start - (uintptr_t)work_area_start;
29
30  bsp_work_area_initialize_default(work_area_start, work_area_size);
31}
Note: See TracBrowser for help on using the repository browser.