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/mpc8260ads/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/mpc8260ads/startup/bspstart.c')
-rw-r--r-- | c/src/lib/libbsp/powerpc/mpc8260ads/startup/bspstart.c | 23 |
1 files changed, 3 insertions, 20 deletions
diff --git a/c/src/lib/libbsp/powerpc/mpc8260ads/startup/bspstart.c b/c/src/lib/libbsp/powerpc/mpc8260ads/startup/bspstart.c index d94f4500ca..58c2ad6cf9 100644 --- a/c/src/lib/libbsp/powerpc/mpc8260ads/startup/bspstart.c +++ b/c/src/lib/libbsp/powerpc/mpc8260ads/startup/bspstart.c @@ -53,10 +53,6 @@ #include <string.h> -#ifdef STACK_CHECKER_ON -#include <stackchk.h> -#endif - SPR_RW(SPRG0) SPR_RW(SPRG1) @@ -187,23 +183,10 @@ bsp_pretasking_hook(void) * the kernel and the application can be linked and burned into ROM * independently of each other. */ - extern unsigned char _HeapStart; - extern unsigned char _HeapEnd; - - bsp_libc_init( &_HeapStart, &_HeapEnd - &_HeapStart, 0 ); + extern unsigned char _HeapStart; + extern unsigned char _HeapEnd; -#ifdef STACK_CHECKER_ON - /* - * Initialize the stack bounds checker - * We can either turn it on here or from the app. - */ - - Stack_check_Initialize(); -#endif - -#ifdef RTEMS_DEBUG - rtems_debug_enable( RTEMS_DEBUG_ALL_MASK ); -#endif + bsp_libc_init( &_HeapStart, &_HeapEnd - &_HeapStart, 0 ); } void bsp_start(void) |