summaryrefslogtreecommitdiff
path: root/nuttx/binfmt/binfmt_execmodule.c
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-08-27 09:37:28 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-08-27 09:37:28 -0600
commite7723401ed547d5859bdbf4804a5c1f056858a6b (patch)
tree1e9a4cc2bb9939f31a9dad5d68cb0b03bc4b38eb /nuttx/binfmt/binfmt_execmodule.c
parentdb977bce4ca94e94e5374b152fa6fa931e2079e2 (diff)
downloadnuttx-e7723401ed547d5859bdbf4804a5c1f056858a6b.tar.gz
nuttx-e7723401ed547d5859bdbf4804a5c1f056858a6b.tar.bz2
nuttx-e7723401ed547d5859bdbf4804a5c1f056858a6b.zip
ADDRENV: Use a group flag to determine if there is an address environment (instead of the thread type)
Diffstat (limited to 'nuttx/binfmt/binfmt_execmodule.c')
-rw-r--r--nuttx/binfmt/binfmt_execmodule.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/nuttx/binfmt/binfmt_execmodule.c b/nuttx/binfmt/binfmt_execmodule.c
index 5d49acf74..07c507233 100644
--- a/nuttx/binfmt/binfmt_execmodule.c
+++ b/nuttx/binfmt/binfmt_execmodule.c
@@ -215,6 +215,10 @@ int exec_module(FAR const struct binary_s *binp)
bdbg("ERROR: up_addrenv_clone() failed: %d\n", ret);
goto errout_with_stack;
}
+
+ /* Mark that this group has an address environment */
+
+ tcb->cmn.group->tg_flags |= GROUP_FLAG_ADDRENV;
#endif
#ifdef CONFIG_BINFMT_CONSTRUCTORS