]> begriffs open source - freertos/commit
Fix vTaskSwitchContext for smp. (#879)
authorMoral-Hao <sihunzhilei@126.com>
Mon, 6 Nov 2023 09:50:32 +0000 (17:50 +0800)
committerGitHub <noreply@github.com>
Mon, 6 Nov 2023 09:50:32 +0000 (17:50 +0800)
commit8ede50cafd8279f0aff1da59d6d1b89a1fa5c2c3
treea21e1b2f75a27a50d74a3a94c559ea35f4b3961b
parent83083a8a1371359e66af4a5aecb5e3110100f5c9
Fix vTaskSwitchContext for smp. (#879)

The function vTaskSwitchContext in smp has an parameter of core id,
which means this function is not only used for the core who call it.
Thus we should use the task running on the specific core id,
instead of use the task running on the core who call this function.

Co-authored-by: moral-hao <405197809@qq.com>
tasks.c