Changeset 975e1918 in rtems


Ignore:
Timestamp:
Jul 22, 2015, 5:37:19 AM (4 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
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)
Message:

monitor: Remove notepad support

Location:
cpukit/libmisc/monitor
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libmisc/monitor/mon-prmisc.c

    r98a41f41 r975e1918  
    249249    return fprintf(stdout,"%08" PRIx32, events);
    250250}
    251 
    252 int
    253 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  
    4747    canonical_task->attributes = 0 /* XXX FIX ME rtems_thread->API_Extensions[ THREAD_API_RTEMS ]->attribute_set */;
    4848
    49   /*
    50    * We know this is deprecated and don't want a warning on every BSP built.
    51    */
    52   #pragma GCC diagnostic push
    53   #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 pop
    59 
    6049/* XXX more to fix */
    6150/*
     
    7160{
    7261    fprintf(stdout,"\
    73   ID       NAME           PRI  STATE MODES   EVENTS    WAITID  WAITARG  NOTES\n\
     62  ID       NAME           PRI  STATE MODES   EVENTS    WAITID  WAITARG\n\
    7463");
    7564/*23456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789
     
    10998    }
    11099
    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 push
    117     #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
    118       length += rtems_monitor_dump_notepad(monitor_task->notepad);
    119     #pragma GCC diagnostic pop
    120 
    121100    fprintf(stdout,"\n");
    122101}
  • cpukit/libmisc/monitor/monitor.h

    r98a41f41 r975e1918  
    105105    rtems_mode                 modes;
    106106    rtems_attribute            attributes;
    107     uint32_t                   notepad[RTEMS_NUMBER_NOTEPADS]
    108                                             RTEMS_COMPILER_DEPRECATED_ATTRIBUTE;
    109107    rtems_id                   wait_id;
    110108    uint32_t                   wait_args;
     
    414412int        rtems_monitor_dump_attributes(rtems_attribute attributes);
    415413int        rtems_monitor_dump_events(rtems_event_set events);
    416 int        rtems_monitor_dump_notepad(uint32_t   *notepad);
    417414
    418415/* object.c */
Note: See TracChangeset for help on using the changeset viewer.