[rtems commit] dosfs: Add RTEMS_DOSFS_SEMAPHORES_PER_INSTANCE

Sebastian Huber sebh at rtems.org
Fri May 24 06:49:30 UTC 2013


Module:    rtems
Branch:    master
Commit:    e67025e3900f23e1b9a25b939d7bff37a9c5e9f0
Changeset: http://git.rtems.org/rtems/commit/?id=e67025e3900f23e1b9a25b939d7bff37a9c5e9f0

Author:    Ralf Kirchner <ralf.kirchner at embedded-brains.de>
Date:      Wed May 22 12:10:33 2013 +0200

dosfs: Add RTEMS_DOSFS_SEMAPHORES_PER_INSTANCE

---

 cpukit/libfs/src/dosfs/dosfs.h                 |    7 +++++++
 testsuites/fstests/mdosfs_support/fs_support.c |    1 +
 2 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/cpukit/libfs/src/dosfs/dosfs.h b/cpukit/libfs/src/dosfs/dosfs.h
index 211fc2d..ea650b2 100644
--- a/cpukit/libfs/src/dosfs/dosfs.h
+++ b/cpukit/libfs/src/dosfs/dosfs.h
@@ -25,6 +25,13 @@
 extern "C" {
 #endif
 
+/**
+ * @brief Semaphore count per FAT filesystem instance.
+ *
+ * This can be used for system configuration via <rtems/confdefs.h>.
+ */
+#define RTEMS_DOSFS_SEMAPHORES_PER_INSTANCE 1
+
 int rtems_dosfs_initialize(rtems_filesystem_mount_table_entry_t *mt_entry,
                            const void                           *data);
 
diff --git a/testsuites/fstests/mdosfs_support/fs_support.c b/testsuites/fstests/mdosfs_support/fs_support.c
index 27882b8..03c377e 100644
--- a/testsuites/fstests/mdosfs_support/fs_support.c
+++ b/testsuites/fstests/mdosfs_support/fs_support.c
@@ -82,6 +82,7 @@ void test_shutdown_filesystem(void)
  */
 #define CONFIGURE_RTEMS_INIT_TASKS_TABLE
 
+#define CONFIGURE_MAXIMUM_SEMAPHORES RTEMS_DOSFS_SEMAPHORES_PER_INSTANCE
 #define CONFIGURE_MAXIMUM_TASKS                     10
 #define CONFIGURE_USE_IMFS_AS_BASE_FILESYSTEM
 #define CONFIGURE_MAXIMUM_DRIVERS                   10




More information about the vc mailing list