Changeset 975e1918 in rtems
- Timestamp:
- 07/22/15 05:37:19 (9 years ago)
- Branches:
- 5, master
- Children:
- 1f199799
- Parents:
- 98a41f41
- git-author:
- Sebastian Huber <sebastian.huber@…> (07/22/15 05:37:19)
- git-committer:
- Sebastian Huber <sebastian.huber@…> (07/24/15 07:09:18)
- Location:
- cpukit/libmisc/monitor
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/libmisc/monitor/mon-prmisc.c
r98a41f41 r975e1918 249 249 return fprintf(stdout,"%08" PRIx32, events); 250 250 } 251 252 int253 rtems_monitor_dump_notepad(uint32_t *notepad)254 {255 int length = 0;256 257 if (rtems_configuration_get_notepads_enabled()) {258 int i;259 260 for (i=0; i < RTEMS_NUMBER_NOTEPADS; i++)261 if (notepad[i])262 length += fprintf(stdout,"%d: 0x%" PRIx32, i, notepad[i]);263 }264 265 return length;266 } -
cpukit/libmisc/monitor/mon-task.c
r98a41f41 r975e1918 47 47 canonical_task->attributes = 0 /* XXX FIX ME rtems_thread->API_Extensions[ THREAD_API_RTEMS ]->attribute_set */; 48 48 49 /*50 * We know this is deprecated and don't want a warning on every BSP built.51 */52 #pragma GCC diagnostic push53 #pragma GCC diagnostic ignored "-Wdeprecated-declarations"54 if ( rtems_configuration_get_notepads_enabled() ) {55 (void) memcpy(56 canonical_task->notepad, api ->Notepads, sizeof(canonical_task->notepad));57 }58 #pragma GCC diagnostic pop59 60 49 /* XXX more to fix */ 61 50 /* … … 71 60 { 72 61 fprintf(stdout,"\ 73 ID NAME PRI STATE MODES EVENTS WAITID WAITARG NOTES\n\62 ID NAME PRI STATE MODES EVENTS WAITID WAITARG\n\ 74 63 "); 75 64 /*23456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 … … 109 98 } 110 99 111 length += rtems_monitor_pad(72, length);112 113 /*114 * We know this is deprecated and don't want a warning on every BSP built.115 */116 #pragma GCC diagnostic push117 #pragma GCC diagnostic ignored "-Wdeprecated-declarations"118 length += rtems_monitor_dump_notepad(monitor_task->notepad);119 #pragma GCC diagnostic pop120 121 100 fprintf(stdout,"\n"); 122 101 } -
cpukit/libmisc/monitor/monitor.h
r98a41f41 r975e1918 105 105 rtems_mode modes; 106 106 rtems_attribute attributes; 107 uint32_t notepad[RTEMS_NUMBER_NOTEPADS]108 RTEMS_COMPILER_DEPRECATED_ATTRIBUTE;109 107 rtems_id wait_id; 110 108 uint32_t wait_args; … … 414 412 int rtems_monitor_dump_attributes(rtems_attribute attributes); 415 413 int rtems_monitor_dump_events(rtems_event_set events); 416 int rtems_monitor_dump_notepad(uint32_t *notepad);417 414 418 415 /* object.c */
Note: See TracChangeset
for help on using the changeset viewer.