forked from espressif/esp-idf
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))
|
__attribute__((always_inline))
|
||||||
inline static bool esp_ptr_in_rtc_iram_fast(const void *p) {
|
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);
|
return ((intptr_t)p >= SOC_RTC_IRAM_LOW && (intptr_t)p < SOC_RTC_IRAM_HIGH);
|
||||||
#else
|
#else
|
||||||
(void)p;
|
(void)p;
|
||||||
|
@ -102,7 +102,7 @@ inline static bool esp_ptr_in_diram_iram(const void *p) {
|
|||||||
*/
|
*/
|
||||||
__attribute__((always_inline))
|
__attribute__((always_inline))
|
||||||
inline static bool esp_ptr_in_rtc_iram_fast(const void *p) {
|
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);
|
return ((intptr_t)p >= SOC_RTC_IRAM_LOW && (intptr_t)p < SOC_RTC_IRAM_HIGH);
|
||||||
#else
|
#else
|
||||||
(void)p;
|
(void)p;
|
||||||
|
Reference in New Issue
Block a user