diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2013-03-20 18:22:21 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2013-03-20 18:22:21 +0000 |
commit | fce497aecaf6826d6fec3cfcb761abeac7fe72bf (patch) | |
tree | 6d2f0d4610067c2b0e4c3f831274037c9ceba91a /nuttx/sched/task_create.c | |
parent | 3d7ed16eabcbea16723b66df2cd2a7d10ba22474 (diff) | |
download | px4-nuttx-fce497aecaf6826d6fec3cfcb761abeac7fe72bf.tar.gz px4-nuttx-fce497aecaf6826d6fec3cfcb761abeac7fe72bf.tar.bz2 px4-nuttx-fce497aecaf6826d6fec3cfcb761abeac7fe72bf.zip |
Change prototypes of up_create_stack and up_release_stack to include a task type parameter
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5765 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/sched/task_create.c')
-rw-r--r-- | nuttx/sched/task_create.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/nuttx/sched/task_create.c b/nuttx/sched/task_create.c index 3db41bf5f..a2221c527 100644 --- a/nuttx/sched/task_create.c +++ b/nuttx/sched/task_create.c @@ -99,10 +99,10 @@ ****************************************************************************/ #ifndef CONFIG_CUSTOM_STACK -static int thread_create(const char *name, uint8_t ttype, int priority, +static int thread_create(FAR const char *name, uint8_t ttype, int priority, int stack_size, main_t entry, FAR char * const argv[]) #else -static int thread_create(const char *name, uint8_t ttype, int priority, +static int thread_create(FAR const char *name, uint8_t ttype, int priority, main_t entry, FAR char * const argv[]) #endif { @@ -146,7 +146,7 @@ static int thread_create(const char *name, uint8_t ttype, int priority, /* Allocate the stack for the TCB */ #ifndef CONFIG_CUSTOM_STACK - ret = up_create_stack((FAR struct tcb_s *)tcb, stack_size); + ret = up_create_stack((FAR struct tcb_s *)tcb, stack_size, ttype); if (ret < OK) { errcode = -ret; @@ -198,7 +198,7 @@ static int thread_create(const char *name, uint8_t ttype, int priority, return pid; errout_with_tcb: - sched_releasetcb((FAR struct tcb_s *)tcb); + sched_releasetcb((FAR struct tcb_s *)tcb, ttype); errout: set_errno(errcode); @@ -244,10 +244,10 @@ errout: ****************************************************************************/ #ifndef CONFIG_CUSTOM_STACK -int task_create(const char *name, int priority, +int task_create(FAR const char *name, int priority, int stack_size, main_t entry, FAR char * const argv[]) #else -int task_create(const char *name, int priority, +int task_create(FAR const char *name, int priority, main_t entry, FAR char * const argv[]) #endif { @@ -275,10 +275,10 @@ int task_create(const char *name, int priority, ****************************************************************************/ #ifndef CONFIG_CUSTOM_STACK -int kernel_thread(const char *name, int priority, +int kernel_thread(FAR const char *name, int priority, int stack_size, main_t entry, FAR char * const argv[]) #else -int kernel_thread(const char *name, int priority, +int kernel_thread(FAR const char *name, int priority, main_t entry, FAR char * const argv[]) #endif { |