Ver código fonte

Merge branch 'bugfix/esp_ptr_executable_single_core_v4.0' into 'release/v4.0'

soc: Fix esp_ptr_executable() for single core ESP32 config & cache memory (v4.0)

See merge request espressif/esp-idf!7464
Ivan Grokhotkov 6 anos atrás
pai
commit
0c2c821f8f
1 arquivos alterados com 4 adições e 0 exclusões
  1. 4 0
      components/soc/include/soc/soc_memory_layout.h

+ 4 - 0
components/soc/include/soc/soc_memory_layout.h

@@ -155,6 +155,10 @@ inline static bool IRAM_ATTR esp_ptr_executable(const void *p)
     intptr_t ip = (intptr_t) p;
     return (ip >= SOC_IROM_LOW && ip < SOC_IROM_HIGH)
         || (ip >= SOC_IRAM_LOW && ip < SOC_IRAM_HIGH)
+        || (ip >= SOC_IROM_MASK_LOW && ip < SOC_IROM_MASK_HIGH)
+#if defined(SOC_CACHE_APP_LOW) && defined(CONFIG_FREERTOS_UNICORE)
+        || (ip >= SOC_CACHE_APP_LOW && ip < SOC_CACHE_APP_HIGH)
+#endif
         || (ip >= SOC_RTC_IRAM_LOW && ip < SOC_RTC_IRAM_HIGH);
 }