diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-09-01 15:39:34 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-09-01 15:39:34 -0600 |
commit | 22cdf157c01d76420b790bdbb1d900a41346d53e (patch) | |
tree | 6b11889164de620dc7b6a8691574f7b1c457f970 /nuttx/arch/rgmp | |
parent | 6c1153d6b32d65888c13c743cfbe994b3c07cab8 (diff) | |
download | nuttx-22cdf157c01d76420b790bdbb1d900a41346d53e.tar.gz nuttx-22cdf157c01d76420b790bdbb1d900a41346d53e.tar.bz2 nuttx-22cdf157c01d76420b790bdbb1d900a41346d53e.zip |
There used to be two ways to pass parameters to new tasks, depending upon the configuration: Either (1) argv[] as created as an array with each string strdup'ed. Or (1) argv[] array and strings were created on the stack before the new task was started. Now, there is only one way, way (1). Way (2) might be slightly more compact, but this is not worth carry the complexity of two different ways of doing the same thing.
Diffstat (limited to 'nuttx/arch/rgmp')
-rw-r--r-- | nuttx/arch/rgmp/src/nuttx.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/nuttx/arch/rgmp/src/nuttx.c b/nuttx/arch/rgmp/src/nuttx.c index 3f9323bb7..dc5478bd2 100644 --- a/nuttx/arch/rgmp/src/nuttx.c +++ b/nuttx/arch/rgmp/src/nuttx.c @@ -170,7 +170,6 @@ int up_use_stack(struct tcb_s *tcb, void *stack, size_t stack_size) return OK; } -#ifdef CONFIG_BUILD_KERNEL FAR void *up_stack_frame(FAR struct tcb_s *tcb, size_t frame_size) { uintptr_t topaddr; @@ -199,7 +198,6 @@ FAR void *up_stack_frame(FAR struct tcb_s *tcb, size_t frame_size) return (FAR void *)(topaddr + sizeof(uint32_t)); } -#endif void up_release_stack(struct tcb_s *dtcb, uint8_t ttype) { |