summaryrefslogtreecommitdiffstats
path: root/cpukit/rtems/src
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-05-30 10:43:31 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-05-30 16:16:24 +0200
commit73f2ddb9157ba04531e0a825a8532a280e6a05e5 (patch)
tree652b0e46134b0ce545e12b53b2b42fe1f93ceeeb /cpukit/rtems/src
parentrtems: Move MrsP semaphore operations (diff)
downloadrtems-73f2ddb9157ba04531e0a825a8532a280e6a05e5.tar.bz2
rtems: Fix semaphore field name
Diffstat (limited to 'cpukit/rtems/src')
-rw-r--r--cpukit/rtems/src/semcreate.c4
-rw-r--r--cpukit/rtems/src/semobtain.c4
-rw-r--r--cpukit/rtems/src/semrelease.c4
3 files changed, 6 insertions, 6 deletions
diff --git a/cpukit/rtems/src/semcreate.c b/cpukit/rtems/src/semcreate.c
index be72874e59..b65a442694 100644
--- a/cpukit/rtems/src/semcreate.c
+++ b/cpukit/rtems/src/semcreate.c
@@ -147,14 +147,14 @@ rtems_status_code rtems_semaphore_create(
if ( _Attributes_Is_counting_semaphore( attribute_set ) ) {
the_semaphore->variant = SEMAPHORE_VARIANT_COUNTING;
_CORE_semaphore_Initialize(
- &the_semaphore->Core_control.semaphore,
+ &the_semaphore->Core_control.Semaphore,
count
);
status = STATUS_SUCCESSFUL;
} else if ( _Attributes_Is_simple_binary_semaphore( attribute_set ) ) {
the_semaphore->variant = SEMAPHORE_VARIANT_SIMPLE_BINARY;
_CORE_semaphore_Initialize(
- &the_semaphore->Core_control.semaphore,
+ &the_semaphore->Core_control.Semaphore,
count != 0
);
status = STATUS_SUCCESSFUL;
diff --git a/cpukit/rtems/src/semobtain.c b/cpukit/rtems/src/semobtain.c
index 4e8b5f3b17..0e5330af41 100644
--- a/cpukit/rtems/src/semobtain.c
+++ b/cpukit/rtems/src/semobtain.c
@@ -34,7 +34,7 @@ THREAD_QUEUE_OBJECT_ASSERT(
THREAD_QUEUE_OBJECT_ASSERT(
Semaphore_Control,
- Core_control.semaphore.Wait_queue
+ Core_control.Semaphore.Wait_queue
);
#if defined(RTEMS_SMP)
@@ -118,7 +118,7 @@ rtems_status_code rtems_semaphore_obtain(
|| the_semaphore->variant == SEMAPHORE_VARIANT_COUNTING
);
status = _CORE_semaphore_Seize(
- &the_semaphore->Core_control.semaphore,
+ &the_semaphore->Core_control.Semaphore,
_Semaphore_Get_operations( the_semaphore ),
executing,
wait,
diff --git a/cpukit/rtems/src/semrelease.c b/cpukit/rtems/src/semrelease.c
index 3d8a7233f7..ccd4e63d64 100644
--- a/cpukit/rtems/src/semrelease.c
+++ b/cpukit/rtems/src/semrelease.c
@@ -73,7 +73,7 @@ rtems_status_code rtems_semaphore_release( rtems_id id )
break;
case SEMAPHORE_VARIANT_SIMPLE_BINARY:
status = _CORE_semaphore_Surrender(
- &the_semaphore->Core_control.semaphore,
+ &the_semaphore->Core_control.Semaphore,
_Semaphore_Get_operations( the_semaphore ),
1,
&queue_context
@@ -96,7 +96,7 @@ rtems_status_code rtems_semaphore_release( rtems_id id )
default:
_Assert( the_semaphore->variant == SEMAPHORE_VARIANT_COUNTING );
status = _CORE_semaphore_Surrender(
- &the_semaphore->Core_control.semaphore,
+ &the_semaphore->Core_control.Semaphore,
_Semaphore_Get_operations( the_semaphore ),
UINT32_MAX,
&queue_context