diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2013-01-22 23:42:51 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2013-01-22 23:42:51 +0000 |
commit | 7beb28fd6826bac8ed68d6432b2ce30c0f4b6360 (patch) | |
tree | 43a56e959c8cf4d0fbc09a2a08755a9d007c45d1 /nuttx/sched/os_start.c | |
parent | 4c97f71507ad55c05dde7979f450dfa4d9c7d800 (diff) | |
download | nuttx-7beb28fd6826bac8ed68d6432b2ce30c0f4b6360.tar.gz nuttx-7beb28fd6826bac8ed68d6432b2ce30c0f4b6360.tar.bz2 nuttx-7beb28fd6826bac8ed68d6432b2ce30c0f4b6360.zip |
lpc1788 update from Rommel Marcelo; Beginning of logic to retain child exit status
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5549 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/sched/os_start.c')
-rw-r--r-- | nuttx/sched/os_start.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/nuttx/sched/os_start.c b/nuttx/sched/os_start.c index a53ac2aa8..cb6a2c869 100644 --- a/nuttx/sched/os_start.c +++ b/nuttx/sched/os_start.c @@ -314,6 +314,17 @@ void os_start(void) kmm_initialize((void*)CONFIG_HEAP_BASE, CONFIG_HEAP_SIZE); #endif + /* Initialize tasking data structures */ + +#if defined(CONFIG_SCHED_HAVE_PARENT) && defined(CONFIG_SCHED_CHILD_STATUS) +#ifdef CONFIG_HAVE_WEAKFUNCTIONS + if (task_initialize != NULL) +#endif + { + task_initialize(); + } +#endif + /* Initialize the interrupt handling subsystem (if included) */ #ifdef CONFIG_HAVE_WEAKFUNCTIONS |