diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-09-11 09:00:10 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-09-11 09:00:10 -0600 |
commit | ea18135ad3478be6d774bb74d00713d3b7d86cd1 (patch) | |
tree | cb0871a917da554e0c551bd8bd35fd6f23b54903 /nuttx/sched | |
parent | 43108346e9ef40deb13ff1c5a817aa4764ab5891 (diff) | |
download | px4-nuttx-ea18135ad3478be6d774bb74d00713d3b7d86cd1.tar.gz px4-nuttx-ea18135ad3478be6d774bb74d00713d3b7d86cd1.tar.bz2 px4-nuttx-ea18135ad3478be6d774bb74d00713d3b7d86cd1.zip |
When a privileged thread exits, we have to use the kernel alloctor to free memory; when an unprivileged thread exits, we don't have to do anything... heap memory will be cleaned up when the address environment is torn down
Diffstat (limited to 'nuttx/sched')
-rw-r--r-- | nuttx/sched/init/os_start.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/nuttx/sched/init/os_start.c b/nuttx/sched/init/os_start.c index 05278111a..62f150c92 100644 --- a/nuttx/sched/init/os_start.c +++ b/nuttx/sched/init/os_start.c @@ -485,16 +485,11 @@ void os_start(void) up_initialize(); - /* Initialize the C libraries (if included in the link). This - * is done last because the libraries may depend on the above. + /* Initialize the C libraries. This is done last because the libraries + * may depend on the above. */ -#ifdef CONFIG_HAVE_WEAKFUNCTIONS - if (lib_initialize != NULL) -#endif - { - lib_initialize(); - } + lib_initialize(); /* IDLE Group Initialization **********************************************/ #ifdef HAVE_TASK_GROUP |