summaryrefslogtreecommitdiffstats
path: root/cpukit/score/inline/rtems/score/coresem.inl
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2009-11-09 14:52:28 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2009-11-09 14:52:28 +0000
commit86436f4427d74ae0704f6af146583ed9bdb8c2b7 (patch)
tree4645b2b869ea778cb8bca53d678793e763eb3066 /cpukit/score/inline/rtems/score/coresem.inl
parent2009-11-09 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-86436f4427d74ae0704f6af146583ed9bdb8c2b7.tar.bz2
2009-11-09 Joel Sherrill <joel.sherrill@oarcorp.com>
* score/inline/rtems/score/coremutex.inl, score/inline/rtems/score/coresem.inl: Eliminate use of local variable. This local variable causes unused variable warnings on some ports.
Diffstat (limited to 'cpukit/score/inline/rtems/score/coresem.inl')
-rw-r--r--cpukit/score/inline/rtems/score/coresem.inl9
1 files changed, 4 insertions, 5 deletions
diff --git a/cpukit/score/inline/rtems/score/coresem.inl b/cpukit/score/inline/rtems/score/coresem.inl
index fbb38a7cc1..3608b2d91b 100644
--- a/cpukit/score/inline/rtems/score/coresem.inl
+++ b/cpukit/score/inline/rtems/score/coresem.inl
@@ -76,13 +76,12 @@ RTEMS_INLINE_ROUTINE uint32_t _CORE_semaphore_Get_count(
RTEMS_INLINE_ROUTINE void _CORE_semaphore_Seize_isr_disable(
CORE_semaphore_Control *the_semaphore,
Objects_Id id,
- bool wait,
+ bool wait,
Watchdog_Interval timeout,
ISR_Level *level_p
)
{
Thread_Control *executing;
- ISR_Level level = *level_p;
/* disabled when you get here */
@@ -90,12 +89,12 @@ RTEMS_INLINE_ROUTINE void _CORE_semaphore_Seize_isr_disable(
executing->Wait.return_code = CORE_SEMAPHORE_STATUS_SUCCESSFUL;
if ( the_semaphore->count != 0 ) {
the_semaphore->count -= 1;
- _ISR_Enable( level );
+ _ISR_Enable( *level_p );
return;
}
if ( !wait ) {
- _ISR_Enable( level );
+ _ISR_Enable( *level_p );
executing->Wait.return_code = CORE_SEMAPHORE_STATUS_UNSATISFIED_NOWAIT;
return;
}
@@ -104,7 +103,7 @@ RTEMS_INLINE_ROUTINE void _CORE_semaphore_Seize_isr_disable(
_Thread_queue_Enter_critical_section( &the_semaphore->Wait_queue );
executing->Wait.queue = &the_semaphore->Wait_queue;
executing->Wait.id = id;
- _ISR_Enable( level );
+ _ISR_Enable( *level_p );
_Thread_queue_Enqueue( &the_semaphore->Wait_queue, timeout );
_Thread_Enable_dispatch();