In the kernel build, pass task paramters in the stack, not using the arrary in the TCB

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5770 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo
2013-03-21 21:51:15 +00:00
parent ee885b45d8
commit 5453d1f2e5
4 changed files with 274 additions and 48 deletions
+10
View File
@@ -543,7 +543,17 @@ struct task_tcb_s
/* Values needed to restart a task ********************************************/
uint8_t init_priority; /* Initial priority of the task */
#if !defined(CONFIG_CUSTOM_STACK) && defined(CONFIG_NUTTX_KERNEL)
/* In the kernel mode build, the arguments are saved on the task's stack */
FAR char **argv; /* Name+start-up parameters */
#else
/* Otherwise, the arguments are strdup'ed and the argv[] is statically */
/* defined here: */
char *argv[CONFIG_MAX_TASK_ARGS+1]; /* Name+start-up parameters */
#endif
};
/* struct pthread_tcb_s **********************************************************/