esp-idf/components/freertos/FreeRTOS-Kernel-SMP/portable
Darian Leung 0cf1fd3a5a freertos: Add multi-core OS startup race condition workaround
FreeRTOS uses a single "xSchedulerRunning" variable to tack whether the
scheduler has started, and this variable is set to "pdTRUE" by core 0
via calling vTaskStartScheduler().

However, with SMP FreeRTOS, there is a race condition where core 0 has
already started the scheduler and another core has not called xPortStartScheduler()
yet and calls some FreeRTOS API. Thus the resultant FreeRTOS API can
cause errors as it thinks the scheduler has started.

This commit adds a temporary workaround (by having each core maintain their
own "xSchedulerRunning" variable.
2022-06-30 20:24:53 +08:00
..
riscv freertos-smp: Fix build test errors for esp32c3 2022-06-17 09:18:46 +02:00
xtensa freertos: Add multi-core OS startup race condition workaround 2022-06-30 20:24:53 +08:00