From 7b10c2421fe8644ef52a90c41f4f2c54c672158f Mon Sep 17 00:00:00 2001 From: Lou Tianhao Date: Mon, 20 May 2024 14:49:49 +0800 Subject: [PATCH] fix(esp_system): fix core1 access cache when core0 close cache during sleep --- components/esp_system/port/arch/riscv/esp_ipc_isr_routines.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/esp_system/port/arch/riscv/esp_ipc_isr_routines.c b/components/esp_system/port/arch/riscv/esp_ipc_isr_routines.c index 62877ae7d9..564690a447 100644 --- a/components/esp_system/port/arch/riscv/esp_ipc_isr_routines.c +++ b/components/esp_system/port/arch/riscv/esp_ipc_isr_routines.c @@ -5,8 +5,9 @@ */ #include "stdint.h" +#include "esp_attr.h" -void esp_ipc_isr_waiting_for_finish_cmd(void* ipc_isr_finish_cmd) +void IRAM_ATTR esp_ipc_isr_waiting_for_finish_cmd(void* ipc_isr_finish_cmd) { while (*(volatile uint32_t *)ipc_isr_finish_cmd == 0) { }; }