forked from Imagelibrary/rtems
2008-05-15 Joel Sherrill <joel.sherrill@OARcorp.com>
* bootcard.c: Add capability for bootcard.c BSP Initialization Framework to ask the BSP where it has memory for the RTEMS Workspace and C Program Heap. These collectively are referred to as work area. If the BSP supports this, then it does not have to include code to split the available memory between the two areas. This reduces the amount of code in the BSP specific bspstart.c file. Additionally, the shared framework can initialize the C Library, call rtems_debug_enable(), and dirty the work area memory. Until most/all BSPs support this new capability, if the BSP supports this, it should call RTEMS_BSP_BOOTCARD_HANDLES_RAM_ALLOCATION from its configure.ac. When the transition is complete, this autoconf macro can be removed. * bsppretaskinghook.c: New file.
This commit is contained in:
22
c/src/lib/libbsp/shared/bsppretaskinghook.c
Normal file
22
c/src/lib/libbsp/shared/bsppretaskinghook.c
Normal file
@@ -0,0 +1,22 @@
|
||||
/*
|
||||
* This is a shared BSP pretasking hook which does nothing.
|
||||
* If all the BSP needs to do is initialize the C library,
|
||||
* then it can rely on bootcard.c and provide bsp_get_workarea().
|
||||
*
|
||||
* COPYRIGHT (c) 1989-2008.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may be
|
||||
* found in the file LICENSE in this distribution or at
|
||||
* http://www.rtems.com/license/LICENSE.
|
||||
*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#include <rtems.h>
|
||||
#include <rtems/libio.h>
|
||||
#include <fcntl.h>
|
||||
|
||||
void bsp_pretasking_hook(void)
|
||||
{
|
||||
}
|
||||
Reference in New Issue
Block a user