mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 01:05:54 +08:00
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:
@@ -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 **********************************************************/
|
||||
|
||||
Reference in New Issue
Block a user