2003-09-22 Ralf Corsepius <corsepiu@faw.uni-ulm.de>

* monitor/monitor.h:
	Add rtems_monitor_commands[] (Illegally applied by shell/).
	Remove ifdef(__mips64) (Make broken code visible again).
	* monitor/mon-command.c: Add several ifndef RTEMS_UNIX to avoid
	warnings.
	* monitor/mon-monitor.c: Remove RTEMS_CPU_HAS_16_BIT_ADDRESSES (Make
	broken code visible again).
	* shell/cmds.c: Remove local decls of rtems_monitor_commands[].
This commit is contained in:
Ralf Corsepius
2003-09-22 13:14:26 +00:00
parent d6879851f8
commit c6d35fa59f
5 changed files with 22 additions and 18 deletions

View File

@@ -469,18 +469,16 @@ int main_chmod(int argc,char *argv[])
*-----------------------------------------------------------*/
int main_monitor(int argc,char * argv[]) {
rtems_monitor_command_entry_t *command;
extern rtems_monitor_command_entry_t rtems_monitor_commands[];
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);
command->command_function(argc, argv, &command->command_arg, 0);
return 0;
}
/*-----------------------------------------------------------*/
void register_cmds(void) {
rtems_monitor_command_entry_t *command;
extern rtems_monitor_command_entry_t rtems_monitor_commands[];
/* monitor topic */
command=rtems_monitor_commands;
while (command) {