diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2013-03-10 15:32:33 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2013-03-10 15:32:33 +0000 |
commit | 8e0c015c2120bf7d76a0c41d1160a745c3565a50 (patch) | |
tree | 60de505ed836f8805b07ead45c2fe36cfc15be6a /nuttx/libc | |
parent | dda5be5c1fc672b5d9cb3a910b5e0cb0a41046c5 (diff) | |
download | px4-nuttx-8e0c015c2120bf7d76a0c41d1160a745c3565a50.tar.gz px4-nuttx-8e0c015c2120bf7d76a0c41d1160a745c3565a50.tar.bz2 px4-nuttx-8e0c015c2120bf7d76a0c41d1160a745c3565a50.zip |
Create sched_ufree and sched_kfree from sched_free; Use user-accessible heap to allocae stacks
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5725 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/libc')
-rw-r--r-- | nuttx/libc/misc/lib_init.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/nuttx/libc/misc/lib_init.c b/nuttx/libc/misc/lib_init.c index 434c46505..efd2c806b 100644 --- a/nuttx/libc/misc/lib_init.c +++ b/nuttx/libc/misc/lib_init.c @@ -49,6 +49,8 @@ #include "lib_internal.h" +#if !defined(CONFIG_NUTTX_KERNEL) || defined(__KERNEL__) + /************************************************************ * Definitions ************************************************************/ @@ -138,12 +140,13 @@ void lib_releaselist(FAR struct streamlist *list) if (list->sl_streams[i].fs_bufstart) { - sched_free(list->sl_streams[i].fs_bufstart); + sched_ufree(list->sl_streams[i].fs_bufstart); } } #endif } +#endif /* !CONFIG_NUTTX_KERNEL || __KERNEL__ */ #endif /* CONFIG_NFILE_STREAMS */ |