fix(wifi): fix cache access error in wifi interrupt with psram enabled

This commit is contained in:
yinqingzhao
2026-06-17 09:55:01 +08:00
committed by Yin Qing Zhao
parent 902a849e7f
commit 0a416cd6c5
5 changed files with 6 additions and 6 deletions
@@ -40,10 +40,10 @@ bool IRAM_ATTR esp_coex_common_env_is_chip_wrapper(void)
void *esp_coex_common_spin_lock_create_wrapper(void)
{
portMUX_TYPE tmp = portMUX_INITIALIZER_UNLOCKED;
void *mux = malloc(sizeof(portMUX_TYPE));
void *mux = heap_caps_malloc(sizeof(portMUX_TYPE), MALLOC_CAP_8BIT|MALLOC_CAP_INTERNAL);
if (mux) {
memcpy(mux, &tmp, sizeof(portMUX_TYPE));
memcpy(mux,&tmp,sizeof(portMUX_TYPE));
return mux;
}
return NULL;