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/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 3a0ab848554 xtensa/esp32s3: fix dcache flush error in up_flush_dcache
3a0ab848554 is described below

commit 3a0ab848554a07f826d59014e487ee1d24d48294
Author: rongyichang <[email protected]>
AuthorDate: Wed Dec 31 20:04:39 2025 +0800

    xtensa/esp32s3: fix dcache flush error in up_flush_dcache
    
    The items is not used in up_flush_dcache, and we should use it in
    function cache_invalidate_dcache_items.
    
    Signed-off-by: rongyichang <[email protected]>
---
 arch/xtensa/src/esp32s3/esp32s3_cache.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/xtensa/src/esp32s3/esp32s3_cache.c 
b/arch/xtensa/src/esp32s3/esp32s3_cache.c
index 78426ebf97d..e593759a940 100644
--- a/arch/xtensa/src/esp32s3/esp32s3_cache.c
+++ b/arch/xtensa/src/esp32s3/esp32s3_cache.c
@@ -353,7 +353,7 @@ void up_invalidate_dcache(uintptr_t start, uintptr_t end)
 {
   uint32_t items = (end - start) / up_get_dcache_linesize();
 
-  cache_invalidate_dcache_items((uint32_t)start, end);
+  cache_invalidate_dcache_items((uint32_t)start, items);
 }
 #endif
 
@@ -466,7 +466,7 @@ void up_flush_dcache(uintptr_t start, uintptr_t end)
 
   cache_writeback_addr((uint32_t)start, (uint32_t)(end - start));
 
-  cache_invalidate_dcache_items((uint32_t)start, end);
+  cache_invalidate_dcache_items((uint32_t)start, items);
 }
 #endif
 

Reply via email to