From 985d395b025cf2012b22f6bb4461959fa6d87645 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Wed, 17 Jul 2024 22:26:28 +0900 Subject: [PATCH] esp32s3_textheap.c: fix a build error w/o CONFIG_ESP32S3_SPIRAM --- arch/xtensa/src/esp32s3/esp32s3_textheap.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/xtensa/src/esp32s3/esp32s3_textheap.c b/arch/xtensa/src/esp32s3/esp32s3_textheap.c index 29d4df36f7..500d67071d 100644 --- a/arch/xtensa/src/esp32s3/esp32s3_textheap.c +++ b/arch/xtensa/src/esp32s3/esp32s3_textheap.c @@ -223,7 +223,9 @@ IRAM_ATTR void up_textheap_data_sync(void) { irqstate_t flags = enter_critical_section(); +#ifdef CONFIG_ESP32S3_SPIRAM esp_spiram_writeback_cache(); +#endif cache_hal_disable(CACHE_TYPE_INSTRUCTION); cache_hal_enable(CACHE_TYPE_INSTRUCTION);