summaryrefslogtreecommitdiff
path: root/nuttx/sched/os_bringup.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-03-11 20:26:55 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-03-11 20:26:55 +0000
commit569561d0b8bbf208837ed267a59b5c8152b278d7 (patch)
treea811a5b1a1418ff45417d02863d5fcc2ffaa8b25 /nuttx/sched/os_bringup.c
parent3578c60ae17a31fef6486ba5c3a2f97b899fb243 (diff)
downloadpx4-nuttx-569561d0b8bbf208837ed267a59b5c8152b278d7.tar.gz
px4-nuttx-569561d0b8bbf208837ed267a59b5c8152b278d7.tar.bz2
px4-nuttx-569561d0b8bbf208837ed267a59b5c8152b278d7.zip
Reorganize some AT91SAM3U files; Add an NSH kernel build configuration to the WaveSahhare Open1788 board
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5732 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/sched/os_bringup.c')
-rw-r--r--nuttx/sched/os_bringup.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/nuttx/sched/os_bringup.c b/nuttx/sched/os_bringup.c
index 29bd1c17e..4ef493409 100644
--- a/nuttx/sched/os_bringup.c
+++ b/nuttx/sched/os_bringup.c
@@ -47,6 +47,7 @@
#include <stdlib.h>
#include <debug.h>
+#include <nuttx/arch.h>
#include <nuttx/init.h>
#include <nuttx/wqueue.h>
#include <nuttx/userspace.h>
@@ -206,6 +207,14 @@ int os_bringup(void)
svdbg("Starting init thread\n");
+ /* Perform any last-minute, board-specific initialization, if so
+ * configured.
+ */
+
+#ifdef CONFIG_BOARD_INITIALIZE
+ board_initialize();
+#endif
+
/* Start the default application. In a flat build, this is entrypoint
* is given by the definitions, CONFIG_USER_ENTRYPOINT. In the kernel
* build, however, we must get the address of the entrypoint from the