diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-12-11 19:20:16 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-12-11 19:20:16 +0000 |
commit | 814d95887daac9891b56b0194390a087cb1248f0 (patch) | |
tree | 917f56778c637f9579a6ed7da9c66540a98ab50d /cpukit/libmisc/shell/cmds.c | |
parent | 2007-12-11 Joel Sherrill <joel.sherrill@OARcorp.com> (diff) | |
download | rtems-814d95887daac9891b56b0194390a087cb1248f0.tar.bz2 |
2007-12-11 Joel Sherrill <joel.sherrill@oarcorp.com>
* libmisc/Makefile.am, libmisc/shell/cmd_help.c, libmisc/shell/cmds.c,
libmisc/shell/internal.h, libmisc/shell/shell.c,
libmisc/shell/shell.h, libmisc/shell/shellconfig.h: Command set
processing now separated from main command loop. Addition of user
commands and aliases tested. Monitor registration now explicit.
* libmisc/shell/shell_cmdset.c, libmisc/shell/shell_makeargs.c,
libmisc/shell/write_file.c: New files.
Diffstat (limited to 'cpukit/libmisc/shell/cmds.c')
-rw-r--r-- | cpukit/libmisc/shell/cmds.c | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/cpukit/libmisc/shell/cmds.c b/cpukit/libmisc/shell/cmds.c index 9c823c693e..d40839ad1e 100644 --- a/cpukit/libmisc/shell/cmds.c +++ b/cpukit/libmisc/shell/cmds.c @@ -1,4 +1,6 @@ /* + * XXX -- Just monitor commands until those can be integrated better + * * Author: Fernando RUIZ CASAS * Work: fernando.ruiz@ctv.es * Home: correo@fernando-ruiz.com @@ -29,31 +31,21 @@ int main_monitor(int argc,char * argv[]) { rtems_monitor_command_entry_t *command; - rtems_task_ident(RTEMS_SELF,0,&rtems_monitor_task_id); - - rtems_monitor_node = rtems_get_node(rtems_monitor_task_id); - - rtems_monitor_default_node = rtems_monitor_node; - if ((command=rtems_monitor_command_lookup(rtems_monitor_commands,argc,argv))) command->command_function(argc, argv, &command->command_arg, 0); return 0; } -/*-----------------------------------------------------------*/ -void register_cmds(void) { +void shell_register_monitor_commands(void) +{ rtems_monitor_command_entry_t *command; /* monitor topic */ - command=rtems_monitor_commands; + command = rtems_monitor_commands; while (command) { if (strcmp("exit",command->command)) /* Exclude EXIT (alias quit)*/ shell_add_cmd(command->command,"monitor", command->usage ,main_monitor); - command=command->next; + command = command->next; } - - - } -/*-----------------------------------------------------------*/ |