summaryrefslogtreecommitdiff
path: root/nuttx/binfmt/binfmt_execmodule.c
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-09-01 13:21:15 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-09-01 13:21:15 -0600
commit7bfdcaa22bd60cd34f11b0592c53fc5da1a37617 (patch)
tree77b4f3886eb3f4049545827c2008d161c318a9fa /nuttx/binfmt/binfmt_execmodule.c
parent9ee5cfaffa313949563fb37f7cd39a2b7620a4dd (diff)
downloadnuttx-7bfdcaa22bd60cd34f11b0592c53fc5da1a37617.tar.gz
nuttx-7bfdcaa22bd60cd34f11b0592c53fc5da1a37617.tar.bz2
nuttx-7bfdcaa22bd60cd34f11b0592c53fc5da1a37617.zip
Remove final traces of the 8015 from the NuttX source tree
Diffstat (limited to 'nuttx/binfmt/binfmt_execmodule.c')
-rw-r--r--nuttx/binfmt/binfmt_execmodule.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/nuttx/binfmt/binfmt_execmodule.c b/nuttx/binfmt/binfmt_execmodule.c
index 414c17284..dccd225b5 100644
--- a/nuttx/binfmt/binfmt_execmodule.c
+++ b/nuttx/binfmt/binfmt_execmodule.c
@@ -135,9 +135,7 @@ static void exec_ctors(FAR void *arg)
int exec_module(FAR const struct binary_s *binp)
{
FAR struct task_tcb_s *tcb;
-#ifndef CONFIG_CUSTOM_STACK
FAR uint32_t *stack;
-#endif
pid_t pid;
int err;
int ret;
@@ -163,7 +161,6 @@ int exec_module(FAR const struct binary_s *binp)
goto errout;
}
-#ifndef CONFIG_CUSTOM_STACK
/* Allocate the stack for the new task (always from the user heap) */
stack = (FAR uint32_t*)kumm_malloc(binp->stacksize);
@@ -177,12 +174,6 @@ int exec_module(FAR const struct binary_s *binp)
ret = task_init((FAR struct tcb_s *)tcb, binp->filename, binp->priority,
stack, binp->stacksize, binp->entrypt, binp->argv);
-#else
- /* Initialize the task */
-
- ret = task_init((FAR struct tcb_s *)tcb, binp->filename, binp->priority,
- stack, binp->entrypt, binp->argv);
-#endif
if (ret < 0)
{
err = get_errno();
@@ -247,13 +238,9 @@ int exec_module(FAR const struct binary_s *binp)
return (int)pid;
errout_with_stack:
-#ifndef CONFIG_CUSTOM_STACK
tcb->cmn.stack_alloc_ptr = NULL;
sched_releasetcb(&tcb->cmn, TCB_FLAG_TTYPE_TASK);
kumm_free(stack);
-#else
- sched_releasetcb(&tcb->cmn, TCB_FLAG_TTYPE_TASK);
-#endif
goto errout;
errout_with_tcb: