fix(cache): fixed cache sync ops concurrent call issue

Closes https://github.com/espressif/esp-idf/issues/18023
This commit is contained in:
armando
2025-12-19 16:01:15 +08:00
parent 847840150b
commit 245cd9cda8
4 changed files with 25 additions and 0 deletions

View File

@@ -33,6 +33,16 @@ DEFINE_CRIT_SECTION_LOCK_STATIC(s_spinlock);
static _lock_t s_mutex;
#endif
void esp_cache_sync_ops_enter_critical_section(void)
{
esp_os_enter_critical_safe(&s_spinlock);
}
void esp_cache_sync_ops_exit_critical_section(void)
{
esp_os_exit_critical_safe(&s_spinlock);
}
#if SOC_CACHE_WRITEBACK_SUPPORTED
static void s_c2m_ops(uint32_t vaddr, size_t size)
{