From 63977bb4d3d7dc0d556d63a386ac74c21ec4ebd3 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 1 Jul 2002 22:19:33 +0000 Subject: 2002-07-01 Joel Sherrill * capture/capture-cli.c, cpuuse/cpuuse.c, monitor/mon-monitor.c, monitor/mon-object.c, monitor/monitor.h: Corrected use of _Objects_Information_table now that it is a two dimensional array based upon API and class. In addition, in the monitor, corrected an error which occured when a target has 64 bit pointers. --- cpukit/libmisc/monitor/monitor.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'cpukit/libmisc/monitor/monitor.h') diff --git a/cpukit/libmisc/monitor/monitor.h b/cpukit/libmisc/monitor/monitor.h index ef0e099ac7..c6eb3c5cfe 100644 --- a/cpukit/libmisc/monitor/monitor.h +++ b/cpukit/libmisc/monitor/monitor.h @@ -36,7 +36,7 @@ typedef enum { /* following monitor objects are not known to RTEMS, but * we like to have "types" for them anyway */ - RTEMS_MONITOR_OBJECT_DRIVER = OBJECTS_CLASSES_LAST+1, + RTEMS_MONITOR_OBJECT_DRIVER = OBJECTS_RTEMS_CLASSES_LAST+1, RTEMS_MONITOR_OBJECT_DNAME, RTEMS_MONITOR_OBJECT_CONFIG, RTEMS_MONITOR_OBJECT_INIT_TASK, @@ -289,13 +289,19 @@ typedef void ( *rtems_monitor_command_function_t )( boolean verbose ); +#if defined(__mips64) + typedef unsigned64 rtems_monitor_command_arg_t; +#else + typedef unsigned32 rtems_monitor_command_arg_t; +#endif + struct rtems_monitor_command_entry_s { char *command; /* command name */ char *usage; /* usage string for the command */ unsigned32 arguments_required; /* # of required args */ rtems_monitor_command_function_t command_function; /* Some argument for the command */ - unsigned32 command_arg; + rtems_monitor_command_arg_t command_arg; struct rtems_monitor_command_entry_s *next; }; -- cgit v1.2.3