mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-02 04:04:31 +02:00
esp_ipc: fix race condition in ipc task
This commit is contained in:
@@ -30,7 +30,6 @@ endif()
|
|||||||
|
|
||||||
idf_component_register(SRCS "${srcs}"
|
idf_component_register(SRCS "${srcs}"
|
||||||
INCLUDE_DIRS "${include_dirs}"
|
INCLUDE_DIRS "${include_dirs}"
|
||||||
PRIV_INCLUDE_DIRS "${priv_include_dirs}"
|
|
||||||
PRIV_REQUIRES soc esp_ipc
|
PRIV_REQUIRES soc esp_ipc
|
||||||
LDFRAGMENTS linker.lf)
|
LDFRAGMENTS linker.lf)
|
||||||
|
|
||||||
|
Submodule components/bt/controller/lib_esp32 updated: cfbb0571fb...fb49791b7c
Submodule components/bt/controller/lib_esp32c3_family updated: 9ca8afd50a...7ad49c38b8
Submodule components/cbor/tinycbor updated: 7c349dbb6b...085ca40781
Submodule components/coap/libcoap updated: 9b6451c365...98954eb30a
@@ -75,7 +75,6 @@ static void IRAM_ATTR ipc_task(void* arg)
|
|||||||
if (s_ipc_wait[cpuid] == IPC_WAIT_FOR_END) {
|
if (s_ipc_wait[cpuid] == IPC_WAIT_FOR_END) {
|
||||||
xSemaphoreGive(s_ipc_ack[cpuid]);
|
xSemaphoreGive(s_ipc_ack[cpuid]);
|
||||||
}
|
}
|
||||||
s_func[cpuid] = NULL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -142,6 +141,7 @@ static esp_err_t esp_ipc_call_and_wait(uint32_t cpu_id, esp_ipc_func_t func, voi
|
|||||||
s_ipc_wait[cpu_id] = wait_for;
|
s_ipc_wait[cpu_id] = wait_for;
|
||||||
xSemaphoreGive(s_ipc_sem[cpu_id]);
|
xSemaphoreGive(s_ipc_sem[cpu_id]);
|
||||||
xSemaphoreTake(s_ipc_ack[cpu_id], portMAX_DELAY);
|
xSemaphoreTake(s_ipc_ack[cpu_id], portMAX_DELAY);
|
||||||
|
s_func[cpu_id] = NULL;
|
||||||
#ifdef CONFIG_ESP_IPC_USES_CALLERS_PRIORITY
|
#ifdef CONFIG_ESP_IPC_USES_CALLERS_PRIORITY
|
||||||
xSemaphoreGive(s_ipc_mutex[cpu_id]);
|
xSemaphoreGive(s_ipc_mutex[cpu_id]);
|
||||||
#else
|
#else
|
||||||
|
Submodule components/esp_wifi/lib updated: 045b526641...e6945e61f7
Submodule components/tinyusb/tinyusb updated: c4badd394e...334e95fac5
Reference in New Issue
Block a user