summaryrefslogtreecommitdiff
path: root/nuttx/arch/hc
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-09-01 15:39:34 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-09-01 15:39:34 -0600
commit22cdf157c01d76420b790bdbb1d900a41346d53e (patch)
tree6b11889164de620dc7b6a8691574f7b1c457f970 /nuttx/arch/hc
parent6c1153d6b32d65888c13c743cfbe994b3c07cab8 (diff)
downloadnuttx-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/hc')
-rw-r--r--nuttx/arch/hc/src/common/up_stackframe.c1
-rw-r--r--nuttx/arch/hc/src/m9s12/Make.defs20
2 files changed, 11 insertions, 10 deletions
diff --git a/nuttx/arch/hc/src/common/up_stackframe.c b/nuttx/arch/hc/src/common/up_stackframe.c
index 4ced22c4a..72777893d 100644
--- a/nuttx/arch/hc/src/common/up_stackframe.c
+++ b/nuttx/arch/hc/src/common/up_stackframe.c
@@ -139,3 +139,4 @@ FAR void *up_stack_frame(FAR struct tcb_s *tcb, size_t frame_size)
return (FAR void *)(topaddr + sizeof(uint16_t));
}
+
diff --git a/nuttx/arch/hc/src/m9s12/Make.defs b/nuttx/arch/hc/src/m9s12/Make.defs
index 41be083df..809a0696c 100644
--- a/nuttx/arch/hc/src/m9s12/Make.defs
+++ b/nuttx/arch/hc/src/m9s12/Make.defs
@@ -35,21 +35,21 @@
HEAD_ASRC = m9s12_vectors.S
-CMN_ASRCS =
-CMN_CSRCS = up_allocateheap.c up_blocktask.c up_copystate.c up_createstack.c \
- up_doirq.c up_exit.c up_idle.c up_initialize.c up_interruptcontext.c \
- up_mdelay.c up_modifyreg16.c up_modifyreg32.c up_modifyreg8.c \
- up_puts.c up_releasepending.c up_releasestack.c up_reprioritizertr.c \
- up_udelay.c up_unblocktask.c up_usestack.c
+CMN_ASRCS =
+CMN_CSRCS = up_allocateheap.c up_blocktask.c up_copystate.c up_createstack.c
+CMN_CSRCS += up_doirq.c up_exit.c up_idle.c up_initialize.c up_interruptcontext.c
+CMN_CSRCS += up_mdelay.c up_modifyreg16.c up_modifyreg32.c up_modifyreg8.c
+CMN_CSRCS += up_puts.c up_releasepending.c up_releasestack.c up_reprioritizertr.c
+CMN_CSRCS += up_stackframe.c up_udelay.c up_unblocktask.c up_usestack.c
-CHIP_ASRCS = m9s12_start.S m9s12_lowputc.S m9s12_saveusercontext.S
-CHIP_CSRCS = m9s12_assert.c m9s12_gpio.c m9s12_gpioirq.c m9s12_initialstate.c \
- m9s12_irq.c m9s12_serial.c
+CHIP_ASRCS = m9s12_start.S m9s12_lowputc.S m9s12_saveusercontext.S
+CHIP_CSRCS = m9s12_assert.c m9s12_gpio.c m9s12_gpioirq.c m9s12_initialstate.c
+CHIP_CSRCS += m9s12_irq.c m9s12_serial.c
ifneq ($(CONFIG_SCHED_TICKLESS),y)
CHIP_CSRCS += m9s12_timerisr.c
endif
ifeq ($(CONFIG_DEBUG_GPIO),y)
-CHIP_CSRCS += m9s12_dumpgpio.c
+CHIP_CSRCS+= m9s12_dumpgpio.c
endif