forked from Imagelibrary/rtems
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:
@@ -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
|
||||||
|
|||||||
@@ -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; \
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user