summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/shared/bootcard.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2015-12-09 08:05:57 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2015-12-10 08:32:36 +0100
commit37030e38c61c0d0a8b0742af75f115bda779c46d (patch)
treed71cd94cf9d534fd606fffd50a0f3256cc822be9 /c/src/lib/libbsp/shared/bootcard.c
parent938ef78cc4c6fa2afe55426b603a3767de3262b5 (diff)
downloadrtems-37030e38.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 'c/src/lib/libbsp/shared/bootcard.c')
-rw-r--r--c/src/lib/libbsp/shared/bootcard.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/c/src/lib/libbsp/shared/bootcard.c b/c/src/lib/libbsp/shared/bootcard.c
index eeb5746fca..cbeb7b2686 100644
--- a/c/src/lib/libbsp/shared/bootcard.c
+++ b/c/src/lib/libbsp/shared/bootcard.c
@@ -75,14 +75,14 @@ void boot_card(
bsp_boot_cmdline = cmdline;
/*
- * Invoke Board Support Package initialization routine written in C.
+ * Initialize the RTEMS Workspace and the C Program Heap.
*/
- bsp_start();
+ bsp_work_area_initialize();
/*
- * Initialize the RTEMS Workspace and the C Program Heap.
+ * Invoke Board Support Package initialization routine written in C.
*/
- bsp_work_area_initialize();
+ bsp_start();
/*
* Initialize RTEMS data structures