fix(esp_hw_support): update memory pointer checks for SPM support

This commit is contained in:
wuzhenghui
2026-07-10 17:16:48 +08:00
parent be916bf9e7
commit 8266cc4e69
3 changed files with 13 additions and 3 deletions
@@ -412,7 +412,10 @@ inline static bool esp_stack_ptr_is_sane(uint32_t sp)
|| esp_stack_ptr_in_extram(sp)
#endif
#if CONFIG_ESP_SYSTEM_ALLOW_RTC_FAST_MEM_AS_HEAP
|| esp_ptr_in_rtc_dram_fast((void*) sp)
|| (esp_ptr_in_rtc_dram_fast((void *)sp) && ((sp & 0xF) == 0))
#endif
#if SOC_MEM_SPM_SUPPORTED
|| (esp_ptr_in_spm((void *)sp) && ((sp & 0xF) == 0))
#endif
;
}