You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ac...@apache.org on 2021/09/17 20:43:55 UTC

[incubator-nuttx] branch master updated: esp32_spiflash.c: Correctly disable APP's CPU cache.

This is an automated email from the ASF dual-hosted git repository.

acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 15b68b9  esp32_spiflash.c: Correctly disable APP's CPU cache.
15b68b9 is described below

commit 15b68b9abb8df4c8c8760ec2658df30441914d9e
Author: Abdelatif Guettouche <ab...@espressif.com>
AuthorDate: Fri Sep 17 16:34:44 2021 +0200

    esp32_spiflash.c: Correctly disable APP's CPU cache.
    
    Signed-off-by: Abdelatif Guettouche <ab...@espressif.com>
---
 arch/xtensa/src/esp32/esp32_spiflash.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/xtensa/src/esp32/esp32_spiflash.c b/arch/xtensa/src/esp32/esp32_spiflash.c
index c813afe..09f578b 100644
--- a/arch/xtensa/src/esp32/esp32_spiflash.c
+++ b/arch/xtensa/src/esp32/esp32_spiflash.c
@@ -426,7 +426,7 @@ static inline void IRAM_ATTR
 
   spi_disable_cache(state->cpu, &state->val[state->cpu]);
 #ifdef CONFIG_SMP
-  spi_disable_cache(state->cpu, &state->val[other]);
+  spi_disable_cache(other, &state->val[other]);
 #endif
 }