From e7723401ed547d5859bdbf4804a5c1f056858a6b Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Wed, 27 Aug 2014 09:37:28 -0600 Subject: ADDRENV: Use a group flag to determine if there is an address environment (instead of the thread type) --- nuttx/binfmt/binfmt_execmodule.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'nuttx/binfmt') 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 -- cgit v1.2.3