Skip to content

Commit 88ccf0c

Browse files
Undo FreeRTOS idleOtherCore changes (#1992)
Fixes #1991
1 parent 874b41f commit 88ccf0c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libraries/FreeRTOS/src/variantHooks.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,14 +165,14 @@ static void __no_inline_not_in_flash_func(IdleThisCore)(void *param) {
165165
(void) param;
166166
while (true) {
167167
ulTaskNotifyTake(pdTRUE, portMAX_DELAY);
168-
portDISABLE_INTERRUPTS();
169168
vTaskPreemptionDisable(nullptr);
169+
portDISABLE_INTERRUPTS();
170170
__otherCoreIdled = true;
171171
while (__otherCoreIdled) {
172172
/* noop */
173173
}
174-
vTaskPreemptionEnable(nullptr);
175174
portENABLE_INTERRUPTS();
175+
vTaskPreemptionEnable(nullptr);
176176
}
177177
}
178178

@@ -188,9 +188,9 @@ extern "C" void __no_inline_not_in_flash_func(__freertos_idle_other_core)() {
188188

189189
extern "C" void __no_inline_not_in_flash_func(__freertos_resume_other_core)() {
190190
__otherCoreIdled = false;
191+
portENABLE_INTERRUPTS();
191192
xTaskResumeAll();
192193
vTaskPreemptionEnable(nullptr);
193-
portENABLE_INTERRUPTS();
194194
}
195195

196196

0 commit comments

Comments
 (0)