summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/include/rtems/libio_.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2013-08-13 16:32:09 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2013-08-14 11:10:44 +0200
commit4180a9bb043ee67669ea17c05e662ab9c92df7e3 (patch)
treec13a6e4a8edc353785e97f5ff3992ce3ba331311 /cpukit/libcsupport/include/rtems/libio_.h
parentbsp: Fix CLOCK_DRIVER_USE_FAST_IDLE and CLOCK_DRIVER_ISRS_PER_TICK. (diff)
downloadrtems-4180a9bb043ee67669ea17c05e662ab9c92df7e3.tar.bz2
filesystem: Add SMP support
Diffstat (limited to '')
-rw-r--r--cpukit/libcsupport/include/rtems/libio_.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/cpukit/libcsupport/include/rtems/libio_.h b/cpukit/libcsupport/include/rtems/libio_.h
index 1f7f654da4..55156c0fa8 100644
--- a/cpukit/libcsupport/include/rtems/libio_.h
+++ b/cpukit/libcsupport/include/rtems/libio_.h
@@ -249,12 +249,16 @@ static inline void rtems_filesystem_mt_unlock( void )
rtems_libio_unlock();
}
+extern rtems_interrupt_lock rtems_filesystem_mt_entry_lock_control;
+
#define rtems_filesystem_mt_entry_declare_lock_context( ctx ) \
rtems_interrupt_level ctx
-#define rtems_filesystem_mt_entry_lock( ctx ) rtems_interrupt_disable( ctx )
+#define rtems_filesystem_mt_entry_lock( ctx ) \
+ rtems_interrupt_lock_acquire( &rtems_filesystem_mt_entry_lock_control, ctx )
-#define rtems_filesystem_mt_entry_unlock( ctx ) rtems_interrupt_enable( ctx )
+#define rtems_filesystem_mt_entry_unlock( ctx ) \
+ rtems_interrupt_lock_release( &rtems_filesystem_mt_entry_lock_control, ctx )
static inline void rtems_filesystem_instance_lock(
const rtems_filesystem_location_info_t *loc