File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
components/esp_psram/system_layer Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -66,6 +66,7 @@ extern uint8_t _rodata_reserved_end;
6666#endif /* CONFIG_SPIRAM_RODATA */
6767
6868#if CONFIG_SPIRAM_FETCH_INSTRUCTIONS
69+ extern uint8_t _instruction_reserved_start ;
6970extern uint8_t _instruction_reserved_end ;
7071#endif /* CONFIG_SPIRAM_FETCH_INSTRUCTIONS */
7172
@@ -483,6 +484,12 @@ bool IRAM_ATTR esp_psram_check_ptr_addr(const void *p)
483484 }
484485#endif /* CONFIG_SPIRAM_FETCH_INSTRUCTIONS && SOC_MMU_DI_VADDR_SHARED */
485486
487+ #if CONFIG_SPIRAM_FETCH_INSTRUCTIONS
488+ if ((intptr_t )p >= (uint32_t )& _instruction_reserved_start && (intptr_t )p < (uint32_t )& _instruction_reserved_end ) {
489+ return true;
490+ }
491+ #endif /* CONFIG_SPIRAM_FETCH_INSTRUCTIONS */
492+
486493 return false;
487494}
488495
You can’t perform that action at this time.
0 commit comments