mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-08-29 14:40:55 +08:00
score: _CORE_mutex_Check_dispatch_for_seize()
Add SMP version of this check, otherwise sptests/spfatal03 fails.
This commit is contained in:
@@ -208,7 +208,10 @@ void _CORE_mutex_Seize_interrupt_blocking(
|
||||
* @retval this method returns true if dispatch is in an unsafe state.
|
||||
*/
|
||||
#ifdef RTEMS_SMP
|
||||
#define _CORE_mutex_Check_dispatch_for_seize(_wait) 0
|
||||
#define _CORE_mutex_Check_dispatch_for_seize(_wait) \
|
||||
(_Thread_Dispatch_get_disable_level() != 1 \
|
||||
&& (_wait) \
|
||||
&& (_System_state_Get() >= SYSTEM_STATE_BEGIN_MULTITASKING))
|
||||
#else
|
||||
#define _CORE_mutex_Check_dispatch_for_seize(_wait) \
|
||||
(!_Thread_Dispatch_is_enabled() \
|
||||
|
||||
Reference in New Issue
Block a user