File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
components/esp_hw_support Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,9 @@ bool esp_ptr_byte_accessible(const void *p)
5252 intptr_t ip = (intptr_t ) p ;
5353 bool r ;
5454 r = (ip >= SOC_BYTE_ACCESSIBLE_LOW && ip < SOC_BYTE_ACCESSIBLE_HIGH );
55+ #if SOC_MEM_TCM_SUPPORTED
56+ r |= (ip >= SOC_TCM_LOW && ip < SOC_TCM_HIGH );
57+ #endif
5558#if CONFIG_ESP_SYSTEM_ALLOW_RTC_FAST_MEM_AS_HEAP
5659 /* For ESP32 case, RTC fast memory is accessible to PRO cpu only and hence
5760 * for single core configuration (where it gets added to system heap) following
Original file line number Diff line number Diff line change @@ -278,6 +278,10 @@ inline static bool esp_ptr_internal(const void *p) {
278278 bool r ;
279279 r = ((intptr_t )p >= SOC_MEM_INTERNAL_LOW && (intptr_t )p < SOC_MEM_INTERNAL_HIGH );
280280
281+ #if SOC_MEM_TCM_SUPPORTED
282+ r |= ((intptr_t )p >= SOC_TCM_LOW && (intptr_t )p < SOC_TCM_HIGH );
283+ #endif
284+
281285#if SOC_RTC_SLOW_MEM_SUPPORTED
282286 r |= ((intptr_t )p >= SOC_RTC_DATA_LOW && (intptr_t )p < SOC_RTC_DATA_HIGH );
283287#endif
You can’t perform that action at this time.
0 commit comments