Repair a verified behavior in freertos/freertos-kernel.
Repair a verified behavior in freertos/freertos-kernel.: a task in OriGent-SFT-Data (Harbor dataset). When configUSE NEWLIB REENTRANT is enabled, FreeRTOS currently updates Newlib's process-global impure ptr during scheduler startup and task-context switches so that it points to the current task's…
The task
When configUSE_NEWLIB_REENTRANT is enabled, FreeRTOS currently updates Newlib's process-global _impure_ptr during scheduler startup and task-context switches so that it points to the current task's reentrancy structure. That model is not safe for SMP: multiple cores can switch contexts concurrently and race to…
Part of henryen/OriGent-SFT-Data.