Changeset 16b2de35 in rtems


Ignore:
Timestamp:
Mar 5, 2015, 10:11:25 AM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, 5, master
Children:
77510c7
Parents:
c735cd5
git-author:
Sebastian Huber <sebastian.huber@…> (03/05/15 10:11:25)
git-committer:
Sebastian Huber <sebastian.huber@…> (03/05/15 10:33:57)
Message:

capture: Fix warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libmisc/capture/capture.c

    rc735cd5 r16b2de35  
    747747{
    748748  rtems_interrupt_lock_context lock_context_global;
    749   rtems_interrupt_lock_context lock_context_per_cpu;
    750   rtems_interrupt_lock*        lock;
    751749  uint32_t                     cpu;
    752750
     
    767765
    768766  for (cpu=0; cpu < rtems_get_processor_count(); cpu++) {
    769     lock = &(capture_lock_on_cpu( cpu ));
     767    RTEMS_INTERRUPT_LOCK_REFERENCE( lock, &(capture_lock_on_cpu( cpu )) )
     768    rtems_interrupt_lock_context lock_context_per_cpu;
     769
    770770    rtems_interrupt_lock_acquire (lock, &lock_context_per_cpu);
    771771    capture_count_on_cpu(cpu) = 0;
     
    12121212  rtems_status_code            sc = RTEMS_SUCCESSFUL;
    12131213  size_t                       recs_size = 0;
    1214   rtems_interrupt_lock*        lock = &(capture_lock_on_cpu( cpu ));
     1214  RTEMS_INTERRUPT_LOCK_REFERENCE( lock, &(capture_lock_on_cpu( cpu )) )
    12151215  rtems_capture_buffer_t*      records = &(capture_records_on_cpu( cpu ));
    12161216  uint32_t*                    flags = &(capture_flags_on_cpu( cpu ));
     
    12621262  size_t                       rel_size = 0;
    12631263  rtems_status_code            ret_val = RTEMS_SUCCESSFUL;
    1264   rtems_interrupt_lock*        lock = &(capture_lock_on_cpu( cpu ));
     1264  RTEMS_INTERRUPT_LOCK_REFERENCE( lock, &(capture_lock_on_cpu( cpu )) )
    12651265  rtems_capture_buffer_t*      records = &(capture_records_on_cpu( cpu ));
    12661266  uint32_t*                    flags = &(capture_flags_on_cpu( cpu ));
Note: See TracChangeset for help on using the changeset viewer.