zhuyanlinzyl commented on a change in pull request #5441:
URL: https://github.com/apache/incubator-nuttx/pull/5441#discussion_r802366053
##########
File path: arch/arm/src/armv7-a/arm_cache.c
##########
@@ -190,7 +198,15 @@ void up_clean_dcache_all(void)
void up_flush_dcache(uintptr_t start, uintptr_t end)
{
- cp15_flush_dcache(start, end);
+ if (cp15_cache_size() < (end - start))
Review comment:
We have a testing on armv8-m with 32K icache & 32k dcache, when flush
&clean buffer with size 1MB。
up_clean_dcache_all() run 30 times faster than up_clean_dcache().
When use this patch, the time is same.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]