diff options
Diffstat (limited to 'nuttx/binfmt/binfmt_execmodule.c')
-rw-r--r-- | nuttx/binfmt/binfmt_execmodule.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/nuttx/binfmt/binfmt_execmodule.c b/nuttx/binfmt/binfmt_execmodule.c index 21c1bf6ac..de65c15cf 100644 --- a/nuttx/binfmt/binfmt_execmodule.c +++ b/nuttx/binfmt/binfmt_execmodule.c @@ -51,6 +51,8 @@ #include "os_internal.h" #include "binfmt_internal.h" +#ifndef CONFIG_BINFMT_DISABLE + /**************************************************************************** * Pre-processor Definitions ****************************************************************************/ @@ -142,11 +144,13 @@ int exec_module(FAR const struct binary_s *bin, int priority) /* Add the DSpace address as the PIC base address */ +#ifdef CONFIG_PIC tcb->picbase = bin->dspace; /* Re-initialize the task's initial state to account for the new PIC base */ up_initial_state(tcb); +#endif /* Get the assigned pid before we start the task */ @@ -181,4 +185,5 @@ errout: return ERROR; } +#endif /* CONFIG_BINFMT_DISABLE */ |