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.
This commit is contained in:
Joel Sherrill
2011-11-09 18:42:17 +00:00
parent 552a80fcbc
commit 0f7afe507a
3 changed files with 10 additions and 3 deletions

View File

@@ -1,3 +1,10 @@
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.
2011-11-07 Ralf Corsepius <ralf.corsepius@rtems.org> 2011-11-07 Ralf Corsepius <ralf.corsepius@rtems.org>
PR 1952/cpukit PR 1952/cpukit

View File

@@ -395,8 +395,8 @@ void _CORE_mutex_Seize_interrupt_blocking(
INTERNAL_ERROR_MUTEX_OBTAIN_FROM_BAD_STATE \ INTERNAL_ERROR_MUTEX_OBTAIN_FROM_BAD_STATE \
); \ ); \
} \ } \
if ( _CORE_mutex_Seize_interrupt_trylock( _the_mutex, &_level ) ) { \ if ( _CORE_mutex_Seize_interrupt_trylock( _the_mutex, &(_level) ) ) { \
if ( !_wait ) { \ if ( !(_wait) ) { \
_ISR_Enable( _level ); \ _ISR_Enable( _level ); \
_Thread_Executing->Wait.return_code = \ _Thread_Executing->Wait.return_code = \
CORE_MUTEX_STATUS_UNSATISFIED_NOWAIT; \ CORE_MUTEX_STATUS_UNSATISFIED_NOWAIT; \

View File

@@ -38,7 +38,7 @@
* _MPCI_Receive_server_tcb until it is used. * _MPCI_Receive_server_tcb until it is used.
*/ */
#define _Thread_MP_Is_receive(_the_thread) \ #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 * This routine frees a proxy control block to the