diff options
Diffstat (limited to 'c/src/lib/libbsp/c4x')
-rw-r--r-- | c/src/lib/libbsp/c4x/c4xsim/ChangeLog | 14 | ||||
-rw-r--r-- | c/src/lib/libbsp/c4x/c4xsim/startup/bspstart.c | 8 |
2 files changed, 16 insertions, 6 deletions
diff --git a/c/src/lib/libbsp/c4x/c4xsim/ChangeLog b/c/src/lib/libbsp/c4x/c4xsim/ChangeLog index 18196eff9e..3ec31fe221 100644 --- a/c/src/lib/libbsp/c4x/c4xsim/ChangeLog +++ b/c/src/lib/libbsp/c4x/c4xsim/ChangeLog @@ -1,3 +1,17 @@ +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. + 2008-05-14 Joel Sherrill <joel.sherrill@OARcorp.com> * Makefile.am: Rework to avoid .rel files. diff --git a/c/src/lib/libbsp/c4x/c4xsim/startup/bspstart.c b/c/src/lib/libbsp/c4x/c4xsim/startup/bspstart.c index ff19c0cf8f..ceb6464df2 100644 --- a/c/src/lib/libbsp/c4x/c4xsim/startup/bspstart.c +++ b/c/src/lib/libbsp/c4x/c4xsim/startup/bspstart.c @@ -36,15 +36,11 @@ extern void bsp_spurious_initialize(); void bsp_pretasking_hook(void) { - extern void *_HeapStart; - extern uint32_t _HeapSize; + extern void *_HeapStart; + extern uint32_t _HeapSize; bsp_libc_init(&_HeapStart, (unsigned int) &_HeapSize, 0); -#ifdef RTEMS_DEBUG - rtems_debug_enable( RTEMS_DEBUG_ALL_MASK ); -#endif - bsp_spurious_initialize(); } |