diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-04-05 17:12:05 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-04-05 17:12:05 +0000 |
commit | da9518a2f540152ccadbe360df209328d1965a6e (patch) | |
tree | c22023cbe2183c46ae8c885ef22574ed6607a90f /cpukit/libmisc/monitor/mon-monitor.c | |
parent | 2010-04-05 Thomas Znidar <t.znidar@embed-it.com> (diff) | |
download | rtems-da9518a2f540152ccadbe360df209328d1965a6e.tar.bz2 |
2010-04-05 Thomas Znidar <t.znidar@embed-it.com>
* libmisc/monitor/mon-monitor.c, libmisc/monitor/monitor.h: Add reset
command.
Diffstat (limited to 'cpukit/libmisc/monitor/mon-monitor.c')
-rw-r--r-- | cpukit/libmisc/monitor/mon-monitor.c | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/cpukit/libmisc/monitor/mon-monitor.c b/cpukit/libmisc/monitor/mon-monitor.c index 274c6a64dc..66aa03a8da 100644 --- a/cpukit/libmisc/monitor/mon-monitor.c +++ b/cpukit/libmisc/monitor/mon-monitor.c @@ -229,6 +229,13 @@ static const rtems_monitor_command_entry_t rtems_monitor_commands[] = { { .status_code = RTEMS_SUCCESSFUL }, /* exit value */ &rtems_monitor_commands[20], }, + { "reset", + "(SW)Resets the System.", + 0, + rtems_monitor_reset_cmd, + { 0 }, + &rtems_monitor_commands[21], + }, #ifdef RTEMS_POSIX_API { "pthread", "Display information about the specified pthreads. " @@ -237,11 +244,11 @@ static const rtems_monitor_command_entry_t rtems_monitor_commands[] = { 0, rtems_monitor_object_cmd, { RTEMS_MONITOR_OBJECT_PTHREAD }, - &rtems_monitor_commands[21], + &rtems_monitor_commands[22], }, - #define RTEMS_MONITOR_DEBUGGER_NEXT 22 + #define RTEMS_MONITOR_DEBUGGER_NEXT 23 #else - #define RTEMS_MONITOR_DEBUGGER_NEXT 21 + #define RTEMS_MONITOR_DEBUGGER_NEXT 22 #endif #ifdef CPU_INVOKE_DEBUGGER { "debugger", @@ -285,6 +292,17 @@ rtems_monitor_suspend(rtems_interval timeout) return status; } +void __attribute__((weak)) +rtems_monitor_reset_cmd( + int argc, + char **argv, + rtems_monitor_command_arg_t* command_arg, + bool verbose +) +{ + +} + void rtems_monitor_wakeup(void) { |