X-Git-Url: http://rtime.felk.cvut.cz/gitweb/rtems-devel.git/blobdiff_plain/1d4358345a08e7d0a89fe48d812dc84567a387f2..dc91b5b31c6cc8b4f1e80be557155b3b440bef35:/rtems-omk-template/appdl/init.c diff --git a/rtems-omk-template/appdl/init.c b/rtems-omk-template/appdl/init.c index 488ede5..55e3e37 100644 --- a/rtems-omk-template/appdl/init.c +++ b/rtems-omk-template/appdl/init.c @@ -15,15 +15,16 @@ #define CONFIGURE_INIT #include +#include "appl_config.h" #include "system.h" #include "app_def.h" -#include "appl_config.h" #include #include #include #include #include #include +#include #define USE_RTEMS_TARFS_LOAD @@ -54,7 +55,9 @@ #define CONFIGURE_SHELL_COMMANDS_ALL #define CONFIGURE_SHELL_COMMANDS_ALL_NETWORKING #define CONFIGURE_SHELL_MOUNT_MSDOS +#ifdef CONFIG_OC_APP_APPDL_NET #define CONFIGURE_SHELL_MOUNT_NFS +#endif #include @@ -113,7 +116,9 @@ int testcmd_forshell(int argc, char **argv) typedef int (*call_t)(int argc, char* argv[]); -int dlopen_forshell(int argc, char **argv) +volatile int continue_execution; + +int dlrun_forshell(int argc, char **argv) { void * handle; int unresolved; @@ -222,9 +227,25 @@ rtems_task Init( "test command for shell", testcmd_forshell); - rtems_shell_add_cmd("dlopen", "app", - "runtime load object and call contained function", - dlopen_forshell); + rtems_shell_add_cmd("dlrun", "rtl", + "runtime load object and run specified function", + dlrun_forshell); + + rtems_shell_add_cmd("dlopen", "rtl", + "runtime load object", + shell_dlopen); + + rtems_shell_add_cmd("dlclose", "rtl", + "close reference to loaded object", + shell_dlclose); + + rtems_shell_add_cmd("dlsym", "rtl", + "obtain reference to symbol in loaded object", + shell_dlsym); + + rtems_shell_add_cmd("dlcall", "rtl", + "call function in loaded object", + shell_dlcall); //rtems_monitor_wakeup();