Skip to content

Commit d2461a1

Browse files
authored
Enable interrupts last when resuming other core (#1872)
1 parent a1902b5 commit d2461a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libraries/FreeRTOS/src/variantHooks.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,8 @@ static void __no_inline_not_in_flash_func(IdleThisCore)(void *param) {
171171
while (__otherCoreIdled) {
172172
/* noop */
173173
}
174-
portENABLE_INTERRUPTS();
175174
vTaskPreemptionEnable(nullptr);
175+
portENABLE_INTERRUPTS();
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();
192191
xTaskResumeAll();
193192
vTaskPreemptionEnable(nullptr);
193+
portENABLE_INTERRUPTS();
194194
}
195195

196196

0 commit comments

Comments
 (0)