diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-05-15 15:55:28 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-05-15 15:55:28 +0000 |
commit | dde1fedb0930f0c9ef02f7d76fdb086f3b22bd4a (patch) | |
tree | 8c58dab3ed7b9cf33cf720006ff0963dd9c3c151 /c/src/lib/libbsp/powerpc/ss555/startup/bspstart.c | |
parent | 2008-05-15 Joel Sherrill <joel.sherrill@OARcorp.com> (diff) | |
download | rtems-dde1fedb0930f0c9ef02f7d76fdb086f3b22bd4a.tar.bz2 |
2008-05-15 Joel Sherrill <joel.sherrill@OARcorp.com>
* startup/bspstart.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.
Diffstat (limited to 'c/src/lib/libbsp/powerpc/ss555/startup/bspstart.c')
-rw-r--r-- | c/src/lib/libbsp/powerpc/ss555/startup/bspstart.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/c/src/lib/libbsp/powerpc/ss555/startup/bspstart.c b/c/src/lib/libbsp/powerpc/ss555/startup/bspstart.c index 4af763631a..86cf311cb6 100644 --- a/c/src/lib/libbsp/powerpc/ss555/startup/bspstart.c +++ b/c/src/lib/libbsp/powerpc/ss555/startup/bspstart.c @@ -94,16 +94,12 @@ void bsp_pretasking_hook(void) * the kernel and the application can be linked and burned into ROM * independently of each other. */ - uint8_t *_HeapStart = + uint8_t *_HeapStart = (uint8_t *)Configuration.work_space_start + rtems_configuration_get_work_space_size(); - extern uint8_t _HeapEnd[]; + extern uint8_t _HeapEnd[]; - bsp_libc_init( _HeapStart, _HeapEnd - _HeapStart, 0 ); - -#ifdef RTEMS_DEBUG - rtems_debug_enable( RTEMS_DEBUG_ALL_MASK ); -#endif + bsp_libc_init( _HeapStart, _HeapEnd - _HeapStart, 0 ); } /* |