mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-19 21:11:57 -04:00
Fixed bit mask compare bug
This commit is contained in:
parent
d59bfca4f9
commit
56d94df0a8
4
tasks.c
4
tasks.c
|
@ -894,7 +894,7 @@ static void prvYieldForTask( TCB_t * pxTCB,
|
|||
if( pxTCB->xTaskRunState == taskTASK_NOT_RUNNING )
|
||||
{
|
||||
#if ( configUSE_CORE_AFFINITY == 1 )
|
||||
if( ( pxTCB->uxCoreAffinityMask & ( 1 << xCoreID ) ) == 1 )
|
||||
if( ( pxTCB->uxCoreAffinityMask & ( 1 << xCoreID ) ) != 0 )
|
||||
#endif
|
||||
{
|
||||
/* If the task is not being executed by any core swap it in */
|
||||
|
@ -911,7 +911,7 @@ static void prvYieldForTask( TCB_t * pxTCB,
|
|||
{
|
||||
configASSERT( ( pxTCB->xTaskRunState == xCoreID ) || ( pxTCB->xTaskRunState == taskTASK_YIELDING ) );
|
||||
#if ( configUSE_CORE_AFFINITY == 1 )
|
||||
if( ( pxTCB->uxCoreAffinityMask & ( 1 << xCoreID ) ) == 1 )
|
||||
if( ( pxTCB->uxCoreAffinityMask & ( 1 << xCoreID ) ) != 0 )
|
||||
#endif
|
||||
{
|
||||
/* The task is already running on this core, mark it as scheduled */
|
||||
|
|
Loading…
Reference in a new issue