Changeset 4180a9b in rtems


Ignore:
Timestamp:
Aug 13, 2013, 2:32:09 PM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
9de9b7d2
Parents:
b7f2060
git-author:
Sebastian Huber <sebastian.huber@…> (08/13/13 14:32:09)
git-committer:
Sebastian Huber <sebastian.huber@…> (08/14/13 09:10:44)
Message:

filesystem: Add SMP support

Location:
cpukit/libcsupport
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libcsupport/include/rtems/libio_.h

    rb7f2060 r4180a9b  
    250250}
    251251
     252extern rtems_interrupt_lock rtems_filesystem_mt_entry_lock_control;
     253
    252254#define rtems_filesystem_mt_entry_declare_lock_context( ctx ) \
    253255  rtems_interrupt_level ctx
    254256
    255 #define rtems_filesystem_mt_entry_lock( ctx ) rtems_interrupt_disable( ctx )
    256 
    257 #define rtems_filesystem_mt_entry_unlock( ctx ) rtems_interrupt_enable( ctx )
     257#define rtems_filesystem_mt_entry_lock( ctx ) \
     258  rtems_interrupt_lock_acquire( &rtems_filesystem_mt_entry_lock_control, ctx )
     259
     260#define rtems_filesystem_mt_entry_unlock( ctx ) \
     261  rtems_interrupt_lock_release( &rtems_filesystem_mt_entry_lock_control, ctx )
    258262
    259263static inline void rtems_filesystem_instance_lock(
  • cpukit/libcsupport/src/sup_fs_location.c

    rb7f2060 r4180a9b  
    2929#include <rtems/score/threaddispatch.h>
    3030
     31rtems_interrupt_lock rtems_filesystem_mt_entry_lock_control =
     32  RTEMS_INTERRUPT_LOCK_INITIALIZER;
     33
    3134static rtems_filesystem_global_location_t *deferred_released_global_locations;
    3235
Note: See TracChangeset for help on using the changeset viewer.