diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-12-09 08:05:57 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-12-10 08:32:36 +0100 |
commit | 37030e38c61c0d0a8b0742af75f115bda779c46d (patch) | |
tree | d71cd94cf9d534fd606fffd50a0f3256cc822be9 /c/src/lib/libbsp/arm/lpc176x/startup/bspstart.c | |
parent | bsps/sparc: Use default bsp_pretasking_hook() (diff) | |
download | rtems-37030e38c61c0d0a8b0742af75f115bda779c46d.tar.bz2 |
bsps: Call bsp_work_area_initialize() early
Call bsp_work_area_initialize() before bsp_start(). This allows
bsp_start() to use malloc() etc. which is beneficial for systems with a
plug-and-play hardware enumeration.
Update #2408.
Diffstat (limited to '')
-rw-r--r-- | c/src/lib/libbsp/arm/lpc176x/startup/bspstart.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/c/src/lib/libbsp/arm/lpc176x/startup/bspstart.c b/c/src/lib/libbsp/arm/lpc176x/startup/bspstart.c index 1aa8e0ffe9..f1aba444fc 100644 --- a/c/src/lib/libbsp/arm/lpc176x/startup/bspstart.c +++ b/c/src/lib/libbsp/arm/lpc176x/startup/bspstart.c @@ -42,7 +42,7 @@ LINKER_SYMBOL( lpc176x_region_heap_1_end ); extern Heap_Control *RTEMS_Malloc_Heap; #endif -void bsp_pretasking_hook( void ) +static void heap_extend( void ) { #ifdef LPC176X_HEAP_EXTEND _Heap_Extend( RTEMS_Malloc_Heap, @@ -86,4 +86,6 @@ void bsp_start( void ) /* DMA */ lpc176x_dma_initialize(); -}
\ No newline at end of file + + heap_extend(); +} |