mirror of
https://github.com/espressif/esp-idf.git
synced 2026-08-18 06:35:35 +03:00
fix(cache): fixed cache sync ops concurrent call issue
Closes https://github.com/espressif/esp-idf/issues/18023
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user