File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 286286#define SOC_DROM_HIGH 0x3F800000
287287#define SOC_IROM_LOW 0x400D0000
288288#define SOC_IROM_HIGH 0x40400000
289+ #define SOC_CACHE_PRO_LOW 0x40070000
290+ #define SOC_CACHE_PRO_HIGH 0x40078000
291+ #define SOC_CACHE_APP_LOW 0x40078000
292+ #define SOC_CACHE_APP_HIGH 0x40080000
289293#define SOC_IRAM_LOW 0x40080000
290294#define SOC_IRAM_HIGH 0x400A0000
291295#define SOC_RTC_IRAM_LOW 0x400C0000
Original file line number Diff line number Diff line change @@ -130,9 +130,9 @@ const size_t soc_memory_region_count = sizeof(soc_memory_regions)/sizeof(soc_mem
130130
131131 These are removed from the soc_memory_regions array when heaps are created.
132132 */
133- SOC_RESERVE_MEMORY_REGION (0x40070000 , 0x40078000 , cpu0_cache );
133+ SOC_RESERVE_MEMORY_REGION (SOC_CACHE_PRO_LOW , SOC_CACHE_PRO_HIGH , cpu0_cache );
134134#ifndef CONFIG_FREERTOS_UNICORE
135- SOC_RESERVE_MEMORY_REGION (0x40078000 , 0x40080000 , cpu1_cache );
135+ SOC_RESERVE_MEMORY_REGION (SOC_CACHE_APP_LOW , SOC_CACHE_APP_HIGH , cpu1_cache );
136136#endif
137137
138138 /* Warning: The ROM stack is located in the 0x3ffe0000 area. We do not specifically disable that area here because
Original file line number Diff line number Diff line change @@ -175,7 +175,11 @@ inline static bool IRAM_ATTR esp_ptr_external_ram(const void *p) {
175175}
176176
177177inline static bool IRAM_ATTR esp_ptr_in_iram (const void * p ) {
178+ #ifndef CONFIG_FREERTOS_UNICORE
178179 return ((intptr_t )p >= SOC_IRAM_LOW && (intptr_t )p < SOC_IRAM_HIGH );
180+ #else
181+ return ((intptr_t )p >= SOC_CACHE_APP_LOW && (intptr_t )p < SOC_IRAM_HIGH );
182+ #endif
179183}
180184
181185inline static bool IRAM_ATTR esp_ptr_in_drom (const void * p ) {
You can’t perform that action at this time.
0 commit comments