From 6f888390ab7301bb53efc443274f040dbcf74342 Mon Sep 17 00:00:00 2001 From: Omar Chebib Date: Thu, 11 Apr 2024 15:42:02 +0800 Subject: [PATCH] fix(spi_flash): fix a bug where l2 cache was configured from flash --- components/spi_flash/cache_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/spi_flash/cache_utils.c b/components/spi_flash/cache_utils.c index 7c728eefd7..f4cb5c18fd 100644 --- a/components/spi_flash/cache_utils.c +++ b/components/spi_flash/cache_utils.c @@ -933,7 +933,7 @@ esp_err_t esp_enable_cache_wrap(bool icache_wrap_enable) #if CONFIG_IDF_TARGET_ESP32P4 //TODO: IDF-5670 -void esp_config_l2_cache_mode(void) +void IRAM_ATTR esp_config_l2_cache_mode(void) { cache_size_t cache_size; cache_line_size_t cache_line_size;