File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -165,14 +165,14 @@ static void __no_inline_not_in_flash_func(IdleThisCore)(void *param) {
165
165
(void ) param;
166
166
while (true ) {
167
167
ulTaskNotifyTake (pdTRUE, portMAX_DELAY);
168
- portDISABLE_INTERRUPTS ();
169
168
vTaskPreemptionDisable (nullptr );
169
+ portDISABLE_INTERRUPTS ();
170
170
__otherCoreIdled = true ;
171
171
while (__otherCoreIdled) {
172
172
/* noop */
173
173
}
174
- vTaskPreemptionEnable (nullptr );
175
174
portENABLE_INTERRUPTS ();
175
+ vTaskPreemptionEnable (nullptr );
176
176
}
177
177
}
178
178
@@ -188,9 +188,9 @@ extern "C" void __no_inline_not_in_flash_func(__freertos_idle_other_core)() {
188
188
189
189
extern " C" void __no_inline_not_in_flash_func (__freertos_resume_other_core)() {
190
190
__otherCoreIdled = false ;
191
+ portENABLE_INTERRUPTS ();
191
192
xTaskResumeAll ();
192
193
vTaskPreemptionEnable (nullptr );
193
- portENABLE_INTERRUPTS ();
194
194
}
195
195
196
196
You can’t perform that action at this time.
0 commit comments