diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-05-08 16:58:10 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-05-08 16:58:10 -0600 |
commit | faa1f56b5d4ea2e756b8ab44563d1fb68f7595e1 (patch) | |
tree | 8a50251f2e5378bb39e1d7d88cd3969bce0ab9db /nuttx/binfmt/binfmt_loadmodule.c | |
parent | af5f00732d9551dca5040b18b822393ef27081c1 (diff) | |
download | nuttx-faa1f56b5d4ea2e756b8ab44563d1fb68f7595e1.tar.gz nuttx-faa1f56b5d4ea2e756b8ab44563d1fb68f7595e1.tar.bz2 nuttx-faa1f56b5d4ea2e756b8ab44563d1fb68f7595e1.zip |
P-code BINFMT: Add logic to pass information from the binfmt logic to the P-code interpreter. This includes some extension to the binfmt interfaces.
Diffstat (limited to 'nuttx/binfmt/binfmt_loadmodule.c')
-rw-r--r-- | nuttx/binfmt/binfmt_loadmodule.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/nuttx/binfmt/binfmt_loadmodule.c b/nuttx/binfmt/binfmt_loadmodule.c index 8db96a49b..00e199b8e 100644 --- a/nuttx/binfmt/binfmt_loadmodule.c +++ b/nuttx/binfmt/binfmt_loadmodule.c @@ -72,7 +72,7 @@ * Description: * Set the default priority of the module to be loaded. This may be * changed (1) by the actions of the binary format's load() method if - * the binary format contains priority informaition, or (2) by the user + * the binary format contains priority information, or (2) by the user * between calls to load_module() and exec_module(). * * Returned Value: @@ -143,6 +143,10 @@ static int load_absmodule(FAR struct binary_s *bin) /* Successfully loaded -- break out with ret == 0 */ bvdbg("Successfully loaded module %s\n", bin->filename); + + /* Save the unload method for use by unload_module */ + + bin->unload = binfmt->unload; dump_module(bin); break; } |