mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 17:33:08 +08:00
cache: fix up_clean_dcache() slowly
Signed-off-by: ligd <liguiding1@xiaomi.com>
This commit is contained in:
@@ -134,7 +134,7 @@ void up_invalidate_icache_all(void)
|
||||
|
||||
void up_clean_dcache(uintptr_t start, uintptr_t end)
|
||||
{
|
||||
if (cp15_cache_size() < (end - start))
|
||||
if ((end - start) < cp15_cache_size())
|
||||
{
|
||||
cp15_clean_dcache(start, end);
|
||||
}
|
||||
@@ -198,7 +198,7 @@ void up_clean_dcache_all(void)
|
||||
|
||||
void up_flush_dcache(uintptr_t start, uintptr_t end)
|
||||
{
|
||||
if (cp15_cache_size() < (end - start))
|
||||
if ((end - start) < cp15_cache_size())
|
||||
{
|
||||
cp15_flush_dcache(start, end);
|
||||
}
|
||||
|
||||
@@ -134,7 +134,7 @@ void up_invalidate_icache_all(void)
|
||||
|
||||
void up_clean_dcache(uintptr_t start, uintptr_t end)
|
||||
{
|
||||
if (cp15_cache_size() < (end - start))
|
||||
if ((end - start) < cp15_cache_size())
|
||||
{
|
||||
cp15_clean_dcache(start, end);
|
||||
}
|
||||
@@ -198,7 +198,7 @@ void up_clean_dcache_all(void)
|
||||
|
||||
void up_flush_dcache(uintptr_t start, uintptr_t end)
|
||||
{
|
||||
if (cp15_cache_size() < (end - start))
|
||||
if ((end - start) < cp15_cache_size())
|
||||
{
|
||||
cp15_flush_dcache(start, end);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user