From d07a149e2cc32ecb9b5d933ff88e3e1613ce3fc7 Mon Sep 17 00:00:00 2001 From: Jeroen Domburg Date: Fri, 27 Jan 2017 17:17:05 +0800 Subject: [PATCH] Fix interrupting task on other CPU that has lower prio than current task on current CPU --- components/freertos/tasks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/freertos/tasks.c b/components/freertos/tasks.c index 0b5cc42957..f885e9c013 100644 --- a/components/freertos/tasks.c +++ b/components/freertos/tasks.c @@ -632,7 +632,7 @@ static void prvAddNewTaskToReadyList( TCB_t *pxNewTCB, TaskFunction_t pxTaskCode */ void taskYIELD_OTHER_CORE( BaseType_t xCoreID, UBaseType_t uxPriority ) { - TCB_t *curTCB = xTaskGetCurrentTaskHandle(); + TCB_t *curTCB = pxCurrentTCB[xCoreID]; BaseType_t i; if (xCoreID != tskNO_AFFINITY) { -- 2.40.0