summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2013-07-17 13:52:00 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2013-07-18 09:58:56 +0200
commit2bbea657ae366f6b73dd6ca5db98af7ea3c29759 (patch)
treefcbee133028ad2e37bb6c15cdfc1b9f7eb25fdf4 /testsuites/sptests
parentlibtests/gxx01: Avoid random memory read/write (diff)
downloadrtems-2bbea657ae366f6b73dd6ca5db98af7ea3c29759.tar.bz2
rtems: Create semaphore implementation header
Move implementation specific parts of sem.h and sem.inl into new header file semimpl.h. The sem.h contains now only the application visible API.
Diffstat (limited to '')
-rw-r--r--testsuites/sptests/spintrcritical01/init.c3
-rw-r--r--testsuites/sptests/spintrcritical09/init.c2
-rw-r--r--testsuites/sptests/spintrcritical16/init.c2
-rw-r--r--testsuites/sptests/spsize/size.c4
4 files changed, 8 insertions, 3 deletions
diff --git a/testsuites/sptests/spintrcritical01/init.c b/testsuites/sptests/spintrcritical01/init.c
index 7859a14a0e..9e1bbaa05a 100644
--- a/testsuites/sptests/spintrcritical01/init.c
+++ b/testsuites/sptests/spintrcritical01/init.c
@@ -11,10 +11,11 @@
#include "config.h"
#endif
-#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__ 1
#include <tmacros.h>
#include <intrcritical.h>
+#include <rtems/rtems/semimpl.h>
+
/* forward declarations to avoid warnings */
rtems_task Init(rtems_task_argument argument);
rtems_timer_service_routine test_release_from_isr(rtems_id timer, void *arg);
diff --git a/testsuites/sptests/spintrcritical09/init.c b/testsuites/sptests/spintrcritical09/init.c
index a00aae0e31..a7f79b2be8 100644
--- a/testsuites/sptests/spintrcritical09/init.c
+++ b/testsuites/sptests/spintrcritical09/init.c
@@ -15,6 +15,8 @@
#include <tmacros.h>
#include <intrcritical.h>
+#include <rtems/rtems/semimpl.h>
+
static rtems_id Semaphore;
static bool case_hit;
diff --git a/testsuites/sptests/spintrcritical16/init.c b/testsuites/sptests/spintrcritical16/init.c
index 4d551bae79..4a32de2a47 100644
--- a/testsuites/sptests/spintrcritical16/init.c
+++ b/testsuites/sptests/spintrcritical16/init.c
@@ -15,6 +15,8 @@
#include <tmacros.h>
#include <intrcritical.h>
+#include <rtems/rtems/semimpl.h>
+
/* forward declarations to avoid warnings */
rtems_task Init(rtems_task_argument argument);
rtems_timer_service_routine test_release_from_isr(rtems_id timer, void *arg);
diff --git a/testsuites/sptests/spsize/size.c b/testsuites/sptests/spsize/size.c
index 2a77927dda..3e5e52e968 100644
--- a/testsuites/sptests/spsize/size.c
+++ b/testsuites/sptests/spsize/size.c
@@ -37,7 +37,7 @@
#include <rtems/score/priority.h>
#include <rtems/rtems/ratemon.h>
#include <rtems/rtems/region.h>
-#include <rtems/rtems/sem.h>
+#include <rtems/rtems/semimpl.h>
#include <rtems/rtems/signal.h>
#include <rtems/score/scheduler.h>
#include <rtems/score/sysstate.h>
@@ -355,7 +355,7 @@ uninitialized =
/*scheduler.h*/ SCHEDULER_OVHD +
-/*sem.h*/ (sizeof _Semaphore_Information) +
+/*semimpl.h*/ (sizeof _Semaphore_Information) +
#if defined(RTEMS_MULTIPROCESSING)
/*semmp.h*/ 0 +