summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/include/rtems/posix
diff options
context:
space:
mode:
authorGedare Bloom <gedare@rtems.org>2017-07-24 14:46:49 -0400
committerGedare Bloom <gedare@rtems.org>2017-07-24 14:46:49 -0400
commitb264998fa9ef2b048950ba81f3d1615c8f9a182d (patch)
tree9c9bccd9936c293d6ee47b4c86d80c38c9130db9 /cpukit/posix/include/rtems/posix
parenttmtests/tmcontext01: Prevent GCC 7.1 optimizations (diff)
downloadrtems-b264998fa9ef2b048950ba81f3d1615c8f9a182d.tar.bz2
posix: replace mmap mappings lock with libio lock
Use the libio mutex lock instead of the mmap mappings lock. Updates #2859.
Diffstat (limited to 'cpukit/posix/include/rtems/posix')
-rw-r--r--cpukit/posix/include/rtems/posix/mmanimpl.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/cpukit/posix/include/rtems/posix/mmanimpl.h b/cpukit/posix/include/rtems/posix/mmanimpl.h
index bb33ac97ed..ff59d911ca 100644
--- a/cpukit/posix/include/rtems/posix/mmanimpl.h
+++ b/cpukit/posix/include/rtems/posix/mmanimpl.h
@@ -39,8 +39,15 @@ typedef struct mmap_mappings_s {
extern rtems_chain_control mmap_mappings;
-bool mmap_mappings_lock_obtain( void );
-bool mmap_mappings_lock_release( void );
+static inline void mmap_mappings_lock_obtain( void )
+{
+ rtems_libio_lock();
+}
+
+static inline void mmap_mappings_lock_release( void )
+{
+ rtems_libio_unlock();
+}
#ifdef __cplusplus
}