summaryrefslogtreecommitdiffstats
path: root/cpukit/score
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2011-11-09 18:42:17 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2011-11-09 18:42:17 +0000
commit0f7afe507a6b78db176c9fa090b90d45ea9a168d (patch)
treee646fe8082189e8e225bc0d73cfbe6f4d8fccd8b /cpukit/score
parent2011-11-09 Werner Almesberger <werner@almesberger.net> (diff)
downloadrtems-0f7afe507a6b78db176c9fa090b90d45ea9a168d.tar.bz2
2011-11-09 Werner Almesberger <werner@almesberger.net>
PR 1957/cpukit * score/include/rtems/score/coremutex.h, score/inline/rtems/score/threadmp.inl: Add parentheses to protect macro arguments.
Diffstat (limited to 'cpukit/score')
-rw-r--r--cpukit/score/include/rtems/score/coremutex.h4
-rw-r--r--cpukit/score/inline/rtems/score/threadmp.inl2
2 files changed, 3 insertions, 3 deletions
diff --git a/cpukit/score/include/rtems/score/coremutex.h b/cpukit/score/include/rtems/score/coremutex.h
index 30bc33cf65..481c95081b 100644
--- a/cpukit/score/include/rtems/score/coremutex.h
+++ b/cpukit/score/include/rtems/score/coremutex.h
@@ -395,8 +395,8 @@ void _CORE_mutex_Seize_interrupt_blocking(
INTERNAL_ERROR_MUTEX_OBTAIN_FROM_BAD_STATE \
); \
} \
- if ( _CORE_mutex_Seize_interrupt_trylock( _the_mutex, &_level ) ) { \
- if ( !_wait ) { \
+ if ( _CORE_mutex_Seize_interrupt_trylock( _the_mutex, &(_level) ) ) { \
+ if ( !(_wait) ) { \
_ISR_Enable( _level ); \
_Thread_Executing->Wait.return_code = \
CORE_MUTEX_STATUS_UNSATISFIED_NOWAIT; \
diff --git a/cpukit/score/inline/rtems/score/threadmp.inl b/cpukit/score/inline/rtems/score/threadmp.inl
index 648ed0e1d2..7599f37503 100644
--- a/cpukit/score/inline/rtems/score/threadmp.inl
+++ b/cpukit/score/inline/rtems/score/threadmp.inl
@@ -38,7 +38,7 @@
* _MPCI_Receive_server_tcb until it is used.
*/
#define _Thread_MP_Is_receive(_the_thread) \
- (_the_thread == _MPCI_Receive_server_tcb)
+ ((_the_thread) == _MPCI_Receive_server_tcb)
/**
* This routine frees a proxy control block to the