You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2022/02/08 14:59:35 UTC

[GitHub] [incubator-nuttx] pkarashchenko commented on a change in pull request #5441: armv7-a/r:cache: add cp15_cache_size function and use flush/clean_all if size large than cache size

pkarashchenko commented on a change in pull request #5441:
URL: https://github.com/apache/incubator-nuttx/pull/5441#discussion_r801726060



##########
File path: arch/arm/src/armv7-a/arm_cache.c
##########
@@ -190,8 +198,16 @@ void up_clean_dcache_all(void)
 
 void up_flush_dcache(uintptr_t start, uintptr_t end)
 {
-  cp15_flush_dcache(start, end);
-  l2cc_flush(start, end);
+  if (cp15_cache_size() < (end - end))

Review comment:
       ```suggestion
     if (cp15_cache_size() < (end - start))
   ```
   




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org