mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-20 05:21:59 -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( pxTCB->xTaskRunState == taskTASK_NOT_RUNNING )
|
||||||
{
|
{
|
||||||
#if ( configUSE_CORE_AFFINITY == 1 )
|
#if ( configUSE_CORE_AFFINITY == 1 )
|
||||||
if( ( pxTCB->uxCoreAffinityMask & ( 1 << xCoreID ) ) == 1 )
|
if( ( pxTCB->uxCoreAffinityMask & ( 1 << xCoreID ) ) != 0 )
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
/* If the task is not being executed by any core swap it in */
|
/* 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 ) );
|
configASSERT( ( pxTCB->xTaskRunState == xCoreID ) || ( pxTCB->xTaskRunState == taskTASK_YIELDING ) );
|
||||||
#if ( configUSE_CORE_AFFINITY == 1 )
|
#if ( configUSE_CORE_AFFINITY == 1 )
|
||||||
if( ( pxTCB->uxCoreAffinityMask & ( 1 << xCoreID ) ) == 1 )
|
if( ( pxTCB->uxCoreAffinityMask & ( 1 << xCoreID ) ) != 0 )
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
/* The task is already running on this core, mark it as scheduled */
|
/* The task is already running on this core, mark it as scheduled */
|
||||||
|
|
Loading…
Reference in a new issue