summaryrefslogtreecommitdiffstats
path: root/testsuites
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2015-12-14 16:37:34 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-02-03 10:00:56 +0100
commite4e7f149c0f4d167a40862fee90707d38ee1aaf6 (patch)
tree9e9093371d64e279404c6a56fc9e66c82cb09b6c /testsuites
parentOptional POSIX Timer initialization (diff)
downloadrtems-e4e7f149c0f4d167a40862fee90707d38ee1aaf6.tar.bz2
Optional POSIX Barrier initialization
Update #2408.
Diffstat (limited to 'testsuites')
-rw-r--r--testsuites/sptests/spsysinit01/init.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/testsuites/sptests/spsysinit01/init.c b/testsuites/sptests/spsysinit01/init.c
index 1679cb6ec5..c8135cd648 100644
--- a/testsuites/sptests/spsysinit01/init.c
+++ b/testsuites/sptests/spsysinit01/init.c
@@ -28,6 +28,7 @@
#include <rtems/extensionimpl.h>
#ifdef RTEMS_POSIX_API
+#include <rtems/posix/barrierimpl.h>
#include <rtems/posix/condimpl.h>
#include <rtems/posix/mqueueimpl.h>
#include <rtems/posix/muteximpl.h>
@@ -101,6 +102,8 @@ typedef enum {
POSIX_SEMAPHORE_POST,
POSIX_TIMER_PRE,
POSIX_TIMER_POST,
+ POSIX_BARRIER_PRE,
+ POSIX_BARRIER_POST,
POSIX_CLEANUP_PRE,
POSIX_CLEANUP_POST,
#endif /* RTEMS_POSIX_API */
@@ -437,6 +440,18 @@ LAST(RTEMS_SYSINIT_POSIX_TIMER)
next_step(POSIX_TIMER_POST);
}
+FIRST(RTEMS_SYSINIT_POSIX_BARRIER)
+{
+ assert(_POSIX_Barrier_Information.maximum == 0);
+ next_step(POSIX_BARRIER_PRE);
+}
+
+LAST(RTEMS_SYSINIT_POSIX_BARRIER)
+{
+ assert(_POSIX_Barrier_Information.maximum != 0);
+ next_step(POSIX_BARRIER_POST);
+}
+
static size_t user_extensions_pre_posix_cleanup;
FIRST(RTEMS_SYSINIT_POSIX_CLEANUP)
@@ -566,6 +581,8 @@ static void Init(rtems_task_argument arg)
#ifdef RTEMS_POSIX_API
+#define CONFIGURE_MAXIMUM_POSIX_BARRIERS 1
+
#define CONFIGURE_MAXIMUM_POSIX_MESSAGE_QUEUES 1
#define CONFIGURE_MAXIMUM_POSIX_MUTEXES 1