summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalf Kirchner <ralf.kirchner@embedded-brains.de>2013-05-22 12:10:33 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2013-05-24 08:55:05 +0200
commite67025e3900f23e1b9a25b939d7bff37a9c5e9f0 (patch)
treec30b6270c5cb335581aa08b6c9538ff474111705
parentdosfs: Fix typo (diff)
downloadrtems-e67025e3900f23e1b9a25b939d7bff37a9c5e9f0.tar.bz2
dosfs: Add RTEMS_DOSFS_SEMAPHORES_PER_INSTANCE
-rw-r--r--cpukit/libfs/src/dosfs/dosfs.h7
-rw-r--r--testsuites/fstests/mdosfs_support/fs_support.c1
2 files changed, 8 insertions, 0 deletions
diff --git a/cpukit/libfs/src/dosfs/dosfs.h b/cpukit/libfs/src/dosfs/dosfs.h
index 211fc2d3f2..ea650b2f7e 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 27882b8216..03c377e03e 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