mirror of
				https://github.com/espressif/esp-idf.git
				synced 2025-11-03 22:08:28 +00:00 
			
		
		
		
	fix(esp_hw_support): esp_ptr_in_rtc_iram_fast check to return false
esp_ptr_in_rtc_iram_fast logic shoul dbe executed if SOC_RTC_FAST_MEM_SUPPORTED is set but it should also be executed if IRAM and DRAM region mapping is the same. Remove the SOC_RTC_IRAM_LOW != SOC_RTC_DRAM_LOW part of the check.
This commit is contained in:
		@@ -102,7 +102,7 @@ inline static bool esp_ptr_in_diram_iram(const void *p) {
 | 
			
		||||
 */
 | 
			
		||||
__attribute__((always_inline))
 | 
			
		||||
inline static bool esp_ptr_in_rtc_iram_fast(const void *p) {
 | 
			
		||||
#if SOC_RTC_FAST_MEM_SUPPORTED && (SOC_RTC_IRAM_LOW != SOC_RTC_DRAM_LOW)
 | 
			
		||||
#if SOC_RTC_FAST_MEM_SUPPORTED
 | 
			
		||||
    return ((intptr_t)p >= SOC_RTC_IRAM_LOW && (intptr_t)p < SOC_RTC_IRAM_HIGH);
 | 
			
		||||
#else
 | 
			
		||||
    (void)p;
 | 
			
		||||
 
 | 
			
		||||
@@ -102,7 +102,7 @@ inline static bool esp_ptr_in_diram_iram(const void *p) {
 | 
			
		||||
 */
 | 
			
		||||
__attribute__((always_inline))
 | 
			
		||||
inline static bool esp_ptr_in_rtc_iram_fast(const void *p) {
 | 
			
		||||
#if SOC_RTC_FAST_MEM_SUPPORTED && (SOC_RTC_IRAM_LOW != SOC_RTC_DRAM_LOW)
 | 
			
		||||
#if SOC_RTC_FAST_MEM_SUPPORTED
 | 
			
		||||
    return ((intptr_t)p >= SOC_RTC_IRAM_LOW && (intptr_t)p < SOC_RTC_IRAM_HIGH);
 | 
			
		||||
#else
 | 
			
		||||
    (void)p;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user