summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--c/src/exec/rtems/src/semcreate.c7
-rw-r--r--cpukit/rtems/src/semcreate.c7
2 files changed, 14 insertions, 0 deletions
diff --git a/c/src/exec/rtems/src/semcreate.c b/c/src/exec/rtems/src/semcreate.c
index 80b8d21334..d17d6aa09c 100644
--- a/c/src/exec/rtems/src/semcreate.c
+++ b/c/src/exec/rtems/src/semcreate.c
@@ -93,6 +93,7 @@ rtems_status_code rtems_semaphore_create(
} else
#endif
+
if ( _Attributes_Is_inherit_priority( attribute_set ) ||
_Attributes_Is_priority_ceiling( attribute_set ) ) {
@@ -166,6 +167,12 @@ rtems_status_code rtems_semaphore_create(
the_semaphore_attributes.discipline = CORE_SEMAPHORE_DISCIPLINES_FIFO;
/*
+ * This effectively disables limit checking.
+ */
+
+ the_semaphore_attributes.maximum_count = 0xFFFFFFFF;
+
+ /*
* The following are just to make Purify happy.
*/
diff --git a/cpukit/rtems/src/semcreate.c b/cpukit/rtems/src/semcreate.c
index 80b8d21334..d17d6aa09c 100644
--- a/cpukit/rtems/src/semcreate.c
+++ b/cpukit/rtems/src/semcreate.c
@@ -93,6 +93,7 @@ rtems_status_code rtems_semaphore_create(
} else
#endif
+
if ( _Attributes_Is_inherit_priority( attribute_set ) ||
_Attributes_Is_priority_ceiling( attribute_set ) ) {
@@ -166,6 +167,12 @@ rtems_status_code rtems_semaphore_create(
the_semaphore_attributes.discipline = CORE_SEMAPHORE_DISCIPLINES_FIFO;
/*
+ * This effectively disables limit checking.
+ */
+
+ the_semaphore_attributes.maximum_count = 0xFFFFFFFF;
+
+ /*
* The following are just to make Purify happy.
*/