esp-idf/components/freertos/FreeRTOS-Kernel-SMP/include/freertos
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
..
atomic.h freertos: Add FreeRTOS SMP upstream files 2022-03-08 14:58:57 +08:00
croutine.h freertos: Add changes to FreeRTOS SMP sources 2022-03-08 14:59:18 +08:00
deprecated_definitions.h freertos: Add FreeRTOS SMP upstream files 2022-03-08 14:58:57 +08:00
event_groups.h freertos: Add FreeRTOS SMP upstream files 2022-03-08 14:58:57 +08:00
FreeRTOS.h freertos-smp: refactor thread local storage pointers deletion callbacks 2022-05-06 09:25:25 +05:30
list.h freertos: Add FreeRTOS SMP upstream files 2022-03-08 14:58:57 +08:00
message_buffer.h freertos: Add FreeRTOS SMP upstream files 2022-03-08 14:58:57 +08:00
mpu_prototypes.h freertos: Add FreeRTOS SMP upstream files 2022-03-08 14:58:57 +08:00
mpu_wrappers.h freertos: Add FreeRTOS SMP upstream files 2022-03-08 14:58:57 +08:00
portable.h freertos: Add FreeRTOS SMP upstream files 2022-03-08 14:58:57 +08:00
projdefs.h freertos: Add changes to FreeRTOS SMP sources 2022-03-08 14:59:18 +08:00
queue.h freertos: Add FreeRTOS SMP upstream files 2022-03-08 14:58:57 +08:00
semphr.h freertos: Add FreeRTOS SMP upstream files 2022-03-08 14:58:57 +08:00
stack_macros.h freertos: Add FreeRTOS SMP upstream files 2022-03-08 14:58:57 +08:00
StackMacros.h freertos: Add FreeRTOS SMP upstream files 2022-03-08 14:58:57 +08:00
stdint.readme freertos: Add FreeRTOS SMP upstream files 2022-03-08 14:58:57 +08:00
stream_buffer.h freertos: Add FreeRTOS SMP upstream files 2022-03-08 14:58:57 +08:00
task.h freertos: Add multi-core OS startup race condition workaround 2022-06-30 20:24:53 +08:00
timers.h freertos: Add changes to FreeRTOS SMP sources 2022-03-08 14:59:18 +08:00