esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa
Darian Leung 45badf864f freertos(IDF): Allow cross-core freeing of task memory when deleting tasks
Previously, IDF FreeRTOS would restrict the clean up of task memory (done by
vTaskDelete() or the Idle task) to only tasks pinned to the current core or
unpinned tasks. This was due to the need to clear the task's coprocessor
ownership on the other core (i.e., "_xt_coproc_owner_sa"). But this restriction
can be lifted by simply protecting access of "_xt_coproc_owner_sa" with a
spinlock.

This commit implements a "_xt_coproc_owner_sa_lock" to protect the access of
"_xt_coproc_owner_sa", thus vTaskDelete() and prvDeleteTCB() can now delete
tasks pinned to the other core so long as that task is not currently running.

Note: This fix was copied from the Xtensa port of Amazon SMP FreeRTOS
2022-12-23 15:29:17 +08:00
..
include/freertos freertos(IDF): Remove dependency on portUSING_MPU_WRAPPERS 2022-12-23 15:29:17 +08:00
port.c freertos(IDF): Allow cross-core freeing of task memory when deleting tasks 2022-12-23 15:29:17 +08:00
portasm.S freertos(IDF): Remove dependency on portUSING_MPU_WRAPPERS 2022-12-23 15:29:17 +08:00
readme_xtensa.txt freertos: Add SPDX license identifiers and update xtensa port files 2022-02-03 17:08:14 +08:00
xt_asm_utils.h freertos(IDF): Allow cross-core freeing of task memory when deleting tasks 2022-12-23 15:29:17 +08:00
xtensa_context.S freertos(IDF): Allow cross-core freeing of task memory when deleting tasks 2022-12-23 15:29:17 +08:00
xtensa_init.c freertos: Add SPDX license identifiers and update xtensa port files 2022-02-03 17:08:14 +08:00
xtensa_loadstore_handler.S freertos: Add SPDX license identifiers and update xtensa port files 2022-02-03 17:08:14 +08:00
xtensa_overlay_os_hook.c freertos: Refactor configuration files 2022-02-10 21:23:46 +08:00
xtensa_vector_defaults.S This commit add to GDBstup: 2022-03-01 19:49:24 +03:00
xtensa_vectors.S freertos(IDF): Allow cross-core freeing of task memory when deleting tasks 2022-12-23 15:29:17 +08:00